Fixing py3 errors after recatoring of Catalog using metaclasses

This commit is contained in:
Roman Mogilatov 2015-07-17 19:39:54 +03:00
parent 0e272f9d58
commit 71101d98f8

View File

@ -1,6 +1,7 @@
"""Catalog module."""
from six import iteritems
from six import add_metaclass
from .errors import Error
from .utils import is_provider
@ -25,14 +26,14 @@ class CatalogMetaClass(type):
return cls
@add_metaclass(CatalogMetaClass)
class AbstractCatalog(object):
"""Abstract providers catalog."""
providers = dict()
__slots__ = ('providers', '__used_providers__',)
__metaclass__ = CatalogMetaClass
__slots__ = ('__used_providers__',)
def __init__(self, *used_providers):
"""Initializer."""