]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
A little clarity tweak to r4093
authorJason Kirtland <jek@discorporate.us>
Thu, 24 Jan 2008 00:21:58 +0000 (00:21 +0000)
committerJason Kirtland <jek@discorporate.us>
Thu, 24 Jan 2008 00:21:58 +0000 (00:21 +0000)
lib/sqlalchemy/util.py

index bdcaf37f07b401c5b087b043fbf646619da79e86..1f41c1179e57d79d17125df2ceecc6f9935ca4f4 100644 (file)
@@ -192,7 +192,7 @@ def get_cls_kwargs(cls):
 
     for c in cls.__mro__:
         if '__init__' in c.__dict__:
-            stack = [c]
+            stack = Set([c])
             break
     else:
         return []
@@ -204,9 +204,9 @@ def get_cls_kwargs(cls):
         if not ctr or not isinstance(ctr, types.FunctionType):
             continue
         names, _, has_kw, _ = inspect.getargspec(ctr)
-        args |= Set(names)
+        args.update(names)
         if has_kw:
-            stack.extend(class_.__bases__)
+            stack.update(class_.__bases__)
     args.discard('self')
     return list(args)