]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
remove parens
authorBenjamin Peterson <benjamin@python.org>
Tue, 24 Aug 2010 21:30:14 +0000 (21:30 +0000)
committerBenjamin Peterson <benjamin@python.org>
Tue, 24 Aug 2010 21:30:14 +0000 (21:30 +0000)
Lib/functools.py

index 7ce6bc2cea4b3dbadc346b7425f93e1cd3e318a8..1bbc520e7c3b8b18dc80acd9ca226de33f5a82dd 100644 (file)
@@ -82,7 +82,7 @@ def total_ordering(cls):
                    ('__gt__', lambda self, other: not other >= self),
                    ('__lt__', lambda self, other: not self >= other)]
     }
-    roots = (set(dir(cls)) & set(convert))
+    roots = set(dir(cls)) & set(convert)
     # Remove default comparison operations defined on object.
     roots -= {meth for meth in roots if getattr(cls, meth) in _object_defaults}
     if not roots: