mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
#3573: idle now doesn't hungs if launched as: idle -e <directory>
Patch by Guilherme Polo.
This commit is contained in:
parent
3d3cf48e53
commit
7c010ee00c
3 changed files with 14 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
What's New in IDLE 2.7.3?
|
||||||
|
=======================
|
||||||
|
|
||||||
|
- Issue #3573: IDLE hangs when passing invalid command line args
|
||||||
|
(directory(ies) instead of file(s)).
|
||||||
|
|
||||||
|
|
||||||
What's New in IDLE 2.7.2?
|
What's New in IDLE 2.7.2?
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
|
|
|
@ -1412,8 +1412,10 @@ def main():
|
||||||
|
|
||||||
if enable_edit:
|
if enable_edit:
|
||||||
if not (cmd or script):
|
if not (cmd or script):
|
||||||
for filename in args:
|
for filename in args[:]:
|
||||||
flist.open(filename)
|
if flist.open(filename) is None:
|
||||||
|
# filename is a directory actually, disconsider it
|
||||||
|
args.remove(filename)
|
||||||
if not args:
|
if not args:
|
||||||
flist.new()
|
flist.new()
|
||||||
if enable_shell:
|
if enable_shell:
|
||||||
|
|
|
@ -27,6 +27,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #3573: IDLE hangs when passing invalid command line args
|
||||||
|
(directory(ies) instead of file(s)) (Patch by Guilherme Polo)
|
||||||
|
|
||||||
- Issue #13694: asynchronous connect in asyncore.dispatcher does not set addr
|
- Issue #13694: asynchronous connect in asyncore.dispatcher does not set addr
|
||||||
attribute.
|
attribute.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue