diff options
Diffstat (limited to 'Lib/idlelib/boolcheck.py')
-rw-r--r-- | Lib/idlelib/boolcheck.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/idlelib/boolcheck.py b/Lib/idlelib/boolcheck.py new file mode 100644 index 0000000..bc988d7 --- /dev/null +++ b/Lib/idlelib/boolcheck.py @@ -0,0 +1,10 @@ +"boolcheck - import this module to ensure True, False, bool() builtins exist." +try: + True +except NameError: + import __builtin__ + __builtin__.True = 1 + __builtin__.False = 0 + from operator import truth + __builtin__.bool = truth + |