summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTony Lownds <tony@lownds.com>2002-12-23 18:11:28 (GMT)
committerTony Lownds <tony@lownds.com>2002-12-23 18:11:28 (GMT)
commit103ee9141082db6537c7957b6e07c74f94489df4 (patch)
tree82792a4d7fe5669ee98452a2ec9b1ecaff8c3f77 /Lib
parent4a80a3ec21cd1e34ff1907afe998f8305aafa232 (diff)
downloadcpython-103ee9141082db6537c7957b6e07c74f94489df4.zip
cpython-103ee9141082db6537c7957b6e07c74f94489df4.tar.gz
cpython-103ee9141082db6537c7957b6e07c74f94489df4.tar.bz2
Move boolcheck to PyShell
Diffstat (limited to 'Lib')
-rw-r--r--Lib/idlelib/PyShell.py2
-rw-r--r--Lib/idlelib/macosx_main.py9
2 files changed, 4 insertions, 7 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index 5b4744e..ffdde4e 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -12,6 +12,8 @@ import traceback
import types
import exceptions
+import boolcheck
+
import linecache
from code import InteractiveInterpreter
diff --git a/Lib/idlelib/macosx_main.py b/Lib/idlelib/macosx_main.py
index 78480fa..9a965ed 100644
--- a/Lib/idlelib/macosx_main.py
+++ b/Lib/idlelib/macosx_main.py
@@ -27,20 +27,15 @@ idlelib = join(split(__file__)[0], 'idlelib')
if isdir(idlelib):
sys.path.append(idlelib)
-# Make sure True, False, bool() builtins exist.
-# - preserves 2.2 compatibility - 2.2.1 includes bool, 2.2 does not.
-# - important for Mac OS X because it ships python 2.2
-import boolcheck
-
# see if we are being asked to execute the subprocess code
if '-p' in sys.argv:
# run expects only the port number in sys.argv
sys.argv.remove('-p')
- # this module will become the namepsace used by the interactive
+ # this module will become the namespace used by the interactive
# interpreter; remove all variables we have defined.
del sys, __file__, boolcheck, split, join, isdir
__import__('run').main()
else:
# Load idlelib/idle.py which starts the application.
- import idle
+ import idle