[Python-checkins] r84306 - python/branches/py3k/Lib/functools.py
benjamin.peterson
python-checkins at python.org
Tue Aug 24 23:30:15 CEST 2010
Author: benjamin.peterson
Date: Tue Aug 24 23:30:14 2010
New Revision: 84306
Log:
remove parens
Modified:
python/branches/py3k/Lib/functools.py
Modified: python/branches/py3k/Lib/functools.py
==============================================================================
--- python/branches/py3k/Lib/functools.py (original)
+++ python/branches/py3k/Lib/functools.py Tue Aug 24 23:30:14 2010
@@ -82,7 +82,7 @@
('__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:
More information about the Python-checkins
mailing list