Fix metaclass not registering objects
This commit is contained in:
parent
4cbb71705e
commit
4bd0806e58
2 changed files with 2 additions and 4 deletions
|
@ -14,7 +14,7 @@ class ComponentType(type):
|
|||
return klass
|
||||
|
||||
|
||||
class Component(object):
|
||||
class Component(object, metaclass=ComponentType):
|
||||
"""
|
||||
lbrynet-daemon component helper
|
||||
|
||||
|
@ -22,7 +22,6 @@ class Component(object):
|
|||
methods
|
||||
"""
|
||||
|
||||
__metaclass__ = ComponentType
|
||||
depends_on = []
|
||||
component_name = None
|
||||
|
||||
|
|
|
@ -129,8 +129,7 @@ class JSONRPCServerType(type):
|
|||
return klass
|
||||
|
||||
|
||||
class AuthorizedBase(object):
|
||||
__metaclass__ = JSONRPCServerType
|
||||
class AuthorizedBase(object, metaclass=JSONRPCServerType):
|
||||
|
||||
@staticmethod
|
||||
def deprecated(new_command=None):
|
||||
|
|
Loading…
Add table
Reference in a new issue