]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
remove tortology
authorChris Withers <chris@simplistix.co.uk>
Tue, 13 Apr 2010 00:27:24 +0000 (01:27 +0100)
committerChris Withers <chris@simplistix.co.uk>
Tue, 13 Apr 2010 00:27:24 +0000 (01:27 +0100)
lib/sqlalchemy/ext/declarative.py

index 4fda6c896bb487d33b86fb215f2adc9fe0b51f1d..de2cbe5736adf613acc719ae59846b2d68af5c7a 100755 (executable)
@@ -550,11 +550,11 @@ def _as_declarative(cls, classname, dict_):
                     if not mapper_args:
                         mapper_args = cls.__mapper_args__
                 elif propagate:
-                    if name == '__table_args__' and propagate:
+                    if name == '__table_args__':
                         if not table_args:
                             table_args = cls.__table_args__
                     elif name == '__tablename__':
-                        if not tablename and propagate:
+                        if not tablename:
                             tablename = cls.__tablename__
                     elif base is not cls:
                         if isinstance(obj, Column):