]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
no need for this to be a function
authorChris Withers <chris@simplistix.co.uk>
Fri, 9 Apr 2010 18:02:08 +0000 (19:02 +0100)
committerChris Withers <chris@simplistix.co.uk>
Fri, 9 Apr 2010 18:02:08 +0000 (19:02 +0100)
lib/sqlalchemy/ext/declarative.py

index 94dba77faed664f48fca4aaab5a906efe0f3bf3f..552fc2c17fd2e5d070c7824858810dcb1b20dbbd 100644 (file)
@@ -539,11 +539,8 @@ def _as_declarative(cls, classname, dict_):
     mapper_args = {}
     table_args = None
     
-    def _is_mixin(klass):
-        return not _is_mapped_class(klass) and klass is not cls
-    
     for base in cls.__mro__:
-        if _is_mixin(base):
+        if not _is_mapped_class(base) and base is not cls:
             for name in dir(base):
                 if name == '__mapper_args__':
                     if not mapper_args: