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
dddeb0ee
Commit
dddeb0ee
authored
Feb 06, 2007
by
Kurt B. Kaiser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up ModifiedInterpreter.runcode() structure
parent
ecf796ed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
27 deletions
+29
-27
Lib/idlelib/PyShell.py
Lib/idlelib/PyShell.py
+29
-27
No files found.
Lib/idlelib/PyShell.py
View file @
dddeb0ee
...
...
@@ -706,7 +706,6 @@ class ModifiedInterpreter(InteractiveInterpreter):
debugger
=
self
.
debugger
try
:
self
.
tkconsole
.
beginexecuting
()
try
:
if
not
debugger
and
self
.
rpcclt
is
not
None
:
self
.
active_seq
=
self
.
rpcclt
.
asyncqueue
(
"exec"
,
"runcode"
,
(
code
,),
{})
...
...
@@ -728,13 +727,16 @@ class ModifiedInterpreter(InteractiveInterpreter):
raise
except
:
if
use_subprocess
:
# When run w/o subprocess, both user and IDLE errors
# are printed here; skip message in that case.
print
>>
self
.
tkconsole
.
stderr
,
\
print
>>
self
.
tkconsole
.
stderr
,
\
"IDLE internal error in runcode()"
self
.
showtraceback
()
if
use_subprocess
:
self
.
tkconsole
.
endexecuting
()
else
:
if
self
.
tkconsole
.
canceled
:
self
.
tkconsole
.
canceled
=
False
print
>>
self
.
tkconsole
.
stderr
,
"KeyboardInterrupt"
else
:
self
.
showtraceback
()
finally
:
if
not
use_subprocess
:
try
:
...
...
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