Commit 9179e89b authored by Raymond Hettinger's avatar Raymond Hettinger

Improve backwards compatibility code to handle True/False.

parent 5fb7a483
......@@ -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']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment