#3573: idle now doesn't hungs if launched as: idle -e <directory>

Patch by Guilherme Polo.
This commit is contained in:
Andrew Svetlov 2012-03-21 13:23:41 +02:00
parent 7941736ddb
commit 0f71f44156
3 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,10 @@
What's New in IDLE 3.2.3?
=========================
- Issue #3573: IDLE hangs when passing invalid command line args
(directory(ies) instead of file(s)).
What's New in IDLE 3.2.1?
=========================

View File

@ -1389,8 +1389,10 @@ def main():
if enable_edit:
if not (cmd or script):
for filename in args:
flist.open(filename)
for filename in args[:]:
if flist.open(filename) is None:
# filename is a directory actually, disconsider it
args.remove(filename)
if not args:
flist.new()
if enable_shell:

View File

@ -28,6 +28,9 @@ Core and Builtins
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
attribute.