mirror of
https://github.com/beetbox/beets.git
synced 2026-01-13 11:41:43 +01:00
Use six.with_metaclass
This commit is contained in:
parent
4a6fa5657b
commit
46065c3c8e
1 changed files with 5 additions and 3 deletions
|
|
@ -19,11 +19,12 @@
|
|||
from __future__ import division, absolute_import, print_function
|
||||
|
||||
import re
|
||||
from abc import ABC, abstractmethod, abstractproperty
|
||||
from abc import ABCMeta, abstractmethod, abstractproperty
|
||||
|
||||
import six
|
||||
|
||||
from beets import logging
|
||||
from beets import config
|
||||
from beets.plugins import BeetsPlugin
|
||||
|
||||
# Parts of external interface.
|
||||
from .hooks import (
|
||||
|
|
@ -222,7 +223,8 @@ def get_distance(config, data_source, info):
|
|||
return dist
|
||||
|
||||
|
||||
class APIAutotaggerPlugin(ABC):
|
||||
@six.with_metaclass(ABCMeta)
|
||||
class APIAutotaggerPlugin(object):
|
||||
def __init__(self):
|
||||
super(APIAutotaggerPlugin, self).__init__()
|
||||
self.config.add({'source_weight': 0.5})
|
||||
|
|
|
|||
Loading…
Reference in a new issue