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
1eafd107
Commit
1eafd107
authored
Apr 11, 2013
by
Roger Serwy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#17585: Fixed IDLE regression. Now closes when using exit() or quit().
parent
36b045f4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
Lib/idlelib/PyShell.py
Lib/idlelib/PyShell.py
+3
-0
Lib/site.py
Lib/site.py
+1
-6
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/idlelib/PyShell.py
View file @
1eafd107
...
...
@@ -1365,6 +1365,9 @@ class PseudoInputFile(PseudoFile):
self
.
_line_buffer
=
line
[
size
:]
return
line
[:
size
]
def
close
(
self
):
self
.
shell
.
close
()
usage_msg
=
"""
\
...
...
Lib/site.py
View file @
1eafd107
...
...
@@ -369,12 +369,7 @@ def setquit():
# Shells like IDLE catch the SystemExit, but listen when their
# stdin wrapper is closed.
try
:
fd
=
-
1
if
hasattr
(
sys
.
stdin
,
"fileno"
):
fd
=
sys
.
stdin
.
fileno
()
if
fd
!=
0
:
# Don't close stdin if it wraps fd 0
sys
.
stdin
.
close
()
sys
.
stdin
.
close
()
except
:
pass
raise
SystemExit
(
code
)
...
...
Misc/NEWS
View file @
1eafd107
...
...
@@ -46,6 +46,8 @@ Library
IDLE
----
- Issue #17585: Fixed IDLE regression. Now closes when using exit() or quit().
- Issue #17657: Show full Tk version in IDLE'
s
about
dialog
.
Patch
by
Todd
Rovito
.
...
...
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