Improve backwards compatibility code to handle True/False.

This commit is contained in:
Raymond Hettinger 2003-11-12 15:21:20 +00:00
parent ad983e79d6
commit 859db26729
1 changed files with 4 additions and 0 deletions

View File

@ -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']