Commits

Mike Bayer  committed 1bf0f03

- fix declarative __init__

  • Participants
  • Parent commits d5b63e5

Comments (0)

Files changed (1)

File lib/sqlalchemy/ext/declarative/api.py

 
 class DeclarativeMeta(type):
     def __init__(cls, classname, bases, dict_):
-        if '_decl_class_registry' in cls.__dict__:
-            return type.__init__(cls, classname, bases, dict_)
-        else:
+        if '_decl_class_registry' not in cls.__dict__:
             _as_declarative(cls, classname, cls.__dict__)
-        return type.__init__(cls, classname, bases, dict_)
+        type.__init__(cls, classname, bases, dict_)
 
     def __setattr__(cls, key, value):
         _add_attribute(cls, key, value)