summaryrefslogtreecommitdiff
path: root/Tools/idle/boolcheck.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-04-29 10:23:27 +0000
committerGuido van Rossum <guido@python.org>2003-04-29 10:23:27 +0000
commit57cd21fde285d25021ee978cd09ed58159166bf8 (patch)
tree57936b5a729c1219ae080d518832b9e17aa219ec /Tools/idle/boolcheck.py
parent19691360c7a8c203d1a94f6074036e810a6f0527 (diff)
downloadcpython-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.py9
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