Mercurial > cpython-lru_cache-weakref
diff Lib/idlelib/PyShell.py @ 75846:a95b19b3b4cd 3.2
#3573: idle now doesn't hungs if launched as: idle -e <directory>
Patch by Guilherme Polo.
| author | Andrew Svetlov <andrew.svetlov@gmail.com> |
|---|---|
| date | Wed, 21 Mar 2012 13:23:41 +0200 |
| parents | 89b699e68fa2 |
| children | a2877fbabf95 cdcd1f7f0882 |
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py Tue Mar 20 16:49:55 2012 +0100 +++ b/Lib/idlelib/PyShell.py Wed Mar 21 13:23:41 2012 +0200 @@ -1389,8 +1389,10 @@ 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:
