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
7e9638d5
Commit
7e9638d5
authored
May 11, 2013
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prevent IDLE from trying to close when sys.stdin is reassigned (#17838)
parent
128dd68b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
Lib/idlelib/run.py
Lib/idlelib/run.py
+5
-0
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/idlelib/run.py
View file @
7e9638d5
...
@@ -297,6 +297,11 @@ class MyHandler(rpc.RPCHandler):
...
@@ -297,6 +297,11 @@ class MyHandler(rpc.RPCHandler):
# page help() text to shell.
# page help() text to shell.
import
pydoc
# import must be done here to capture i/o binding
import
pydoc
# import must be done here to capture i/o binding
pydoc
.
pager
=
pydoc
.
plainpager
pydoc
.
pager
=
pydoc
.
plainpager
# Keep a reference to stdin so that it won't try to exit IDLE if
# sys.stdin gets changed from within IDLE's shell. See issue17838.
self
.
_keep_stdin
=
sys
.
stdin
self
.
interp
=
self
.
get_remote_proxy
(
"interp"
)
self
.
interp
=
self
.
get_remote_proxy
(
"interp"
)
rpc
.
RPCHandler
.
getresponse
(
self
,
myseq
=
None
,
wait
=
0.05
)
rpc
.
RPCHandler
.
getresponse
(
self
,
myseq
=
None
,
wait
=
0.05
)
...
...
Misc/NEWS
View file @
7e9638d5
...
@@ -118,6 +118,8 @@ Library
...
@@ -118,6 +118,8 @@ Library
IDLE
IDLE
----
----
-
Issue
#
17838
:
Allow
sys
.
stdin
to
be
reassigned
.
-
Issue
#
14735
:
Update
IDLE
docs
to
omit
"Control-z on Windows"
.
-
Issue
#
14735
:
Update
IDLE
docs
to
omit
"Control-z on Windows"
.
-
Issue
#
17585
:
Fixed
IDLE
regression
.
Now
closes
when
using
exit
()
or
quit
().
-
Issue
#
17585
:
Fixed
IDLE
regression
.
Now
closes
when
using
exit
()
or
quit
().
...
...
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