mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
remove parens
This commit is contained in:
parent
1d6569cfb9
commit
16925e8539
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user