Improve backwards compatibility code to handle True/False.
This commit is contained in:
parent
ad983e79d6
commit
859db26729
|
@ -73,6 +73,10 @@ except ImportError:
|
|||
for x in iterable:
|
||||
if not predicate(x):
|
||||
yield x
|
||||
try:
|
||||
True, False
|
||||
except NameError:
|
||||
True, False = (0==0, 0!=0)
|
||||
|
||||
__all__ = ['BaseSet', 'Set', 'ImmutableSet']
|
||||
|
||||
|
|
Loading…
Reference in New Issue