Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8742ed6f
Commit
8742ed6f
authored
Dec 23, 2002
by
Tony Lownds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move boolcheck to PyShell
parent
307b850e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
Lib/idlelib/PyShell.py
Lib/idlelib/PyShell.py
+2
-0
Lib/idlelib/macosx_main.py
Lib/idlelib/macosx_main.py
+2
-7
No files found.
Lib/idlelib/PyShell.py
View file @
8742ed6f
...
...
@@ -12,6 +12,8 @@ import traceback
import
types
import
exceptions
import
boolcheck
import
linecache
from
code
import
InteractiveInterpreter
...
...
Lib/idlelib/macosx_main.py
View file @
8742ed6f
...
...
@@ -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 name
ps
ace used by the interactive
# this module will become the name
sp
ace 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment