diff options
| author | Guido van Rossum <guido@python.org> | 2003-04-29 10:23:27 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2003-04-29 10:23:27 +0000 |
| commit | 57cd21fde285d25021ee978cd09ed58159166bf8 (patch) | |
| tree | 57936b5a729c1219ae080d518832b9e17aa219ec /Tools/idle/boolcheck.py | |
| parent | 19691360c7a8c203d1a94f6074036e810a6f0527 (diff) | |
| download | cpython-git-57cd21fde285d25021ee978cd09ed58159166bf8.tar.gz | |
Checking in IDLEFORK exactly as it appears in the idlefork CVS.
On a branch, for now.
Diffstat (limited to 'Tools/idle/boolcheck.py')
| -rw-r--r-- | Tools/idle/boolcheck.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tools/idle/boolcheck.py b/Tools/idle/boolcheck.py new file mode 100644 index 0000000000..f682232e49 --- /dev/null +++ b/Tools/idle/boolcheck.py @@ -0,0 +1,9 @@ +"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 |
