#17585: Fixed IDLE regression. Now closes when using exit() or quit().
This commit is contained in:
parent
36b045f4db
commit
1eafd1076e
|
@ -1365,6 +1365,9 @@ class PseudoInputFile(PseudoFile):
|
||||||
self._line_buffer = line[size:]
|
self._line_buffer = line[size:]
|
||||||
return line[:size]
|
return line[:size]
|
||||||
|
|
||||||
|
def close(self):
|
||||||
|
self.shell.close()
|
||||||
|
|
||||||
|
|
||||||
usage_msg = """\
|
usage_msg = """\
|
||||||
|
|
||||||
|
|
|
@ -369,12 +369,7 @@ def setquit():
|
||||||
# Shells like IDLE catch the SystemExit, but listen when their
|
# Shells like IDLE catch the SystemExit, but listen when their
|
||||||
# stdin wrapper is closed.
|
# stdin wrapper is closed.
|
||||||
try:
|
try:
|
||||||
fd = -1
|
sys.stdin.close()
|
||||||
if hasattr(sys.stdin, "fileno"):
|
|
||||||
fd = sys.stdin.fileno()
|
|
||||||
if fd != 0:
|
|
||||||
# Don't close stdin if it wraps fd 0
|
|
||||||
sys.stdin.close()
|
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
raise SystemExit(code)
|
raise SystemExit(code)
|
||||||
|
|
|
@ -46,6 +46,8 @@ Library
|
||||||
IDLE
|
IDLE
|
||||||
----
|
----
|
||||||
|
|
||||||
|
- Issue #17585: Fixed IDLE regression. Now closes when using exit() or quit().
|
||||||
|
|
||||||
- Issue #17657: Show full Tk version in IDLE's about dialog.
|
- Issue #17657: Show full Tk version in IDLE's about dialog.
|
||||||
Patch by Todd Rovito.
|
Patch by Todd Rovito.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue