mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
#17585: merge with 3.3.
This commit is contained in:
commit
663a390454
3 changed files with 6 additions and 6 deletions
|
|
@ -1368,6 +1368,9 @@ def readline(self, size=-1):
|
||||||
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 = """\
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -350,12 +350,7 @@ def __call__(self, code=None):
|
||||||
# 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)
|
||||||
|
|
|
||||||
|
|
@ -1060,6 +1060,8 @@ _ Issue #17385: Fix quadratic behavior in threading.Condition. The FIFO
|
||||||
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…
Add table
Add a link
Reference in a new issue