diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2003-06-14 03:33:20 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2003-06-14 03:33:20 (GMT) |
commit | b3a0a666f26546ca0b39e61b2dc6e2f9c7d2926e (patch) | |
tree | 8f0e8231ac76f2b45f21e8dbed43f54cb8947740 | |
parent | ae8bbff2313afc3ad9a5c69795ca4667fae45041 (diff) | |
download | cpython-b3a0a666f26546ca0b39e61b2dc6e2f9c7d2926e.zip cpython-b3a0a666f26546ca0b39e61b2dc6e2f9c7d2926e.tar.gz cpython-b3a0a666f26546ca0b39e61b2dc6e2f9c7d2926e.tar.bz2 |
Remove the 2.2 compatibility module boolcheck.py and related code
M PyShell.py
R boolcheck.py
M run.py
-rw-r--r-- | Lib/idlelib/PyShell.py | 3 | ||||
-rw-r--r-- | Lib/idlelib/boolcheck.py | 9 | ||||
-rw-r--r-- | Lib/idlelib/run.py | 2 |
3 files changed, 0 insertions, 14 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index d65ec27..60fe3c2 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -19,9 +19,6 @@ from code import InteractiveInterpreter from Tkinter import * import tkMessageBox -# Preserve 2.2 compatibility for Mac OS X: -import boolcheck - from EditorWindow import EditorWindow, fixwordbreaks from FileList import FileList from ColorDelegator import ColorDelegator diff --git a/Lib/idlelib/boolcheck.py b/Lib/idlelib/boolcheck.py deleted file mode 100644 index f682232..0000000 --- a/Lib/idlelib/boolcheck.py +++ /dev/null @@ -1,9 +0,0 @@ -"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 diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index 7ff8b55..be91d54 100644 --- a/Lib/idlelib/run.py +++ b/Lib/idlelib/run.py @@ -7,8 +7,6 @@ import thread import threading import Queue -import boolcheck - import CallTips import RemoteDebugger import RemoteObjectBrowser |