Commit 6b6e4376 authored by Andrew Svetlov's avatar Andrew Svetlov

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

Patch by Guilherme Polo.
parent 669b755c
...@@ -1403,8 +1403,10 @@ def main(): ...@@ -1403,8 +1403,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:
......
...@@ -10,6 +10,11 @@ What's New in Python 3.3.0 Alpha 2? ...@@ -10,6 +10,11 @@ What's New in Python 3.3.0 Alpha 2?
Core and Builtins Core and Builtins
----------------- -----------------
- Issue #3573: IDLE hangs when passing invalid command line args
(directory(ies) instead of file(s))
Thanks to Guilherme Polo for patch and to Roger Serwy for review.
- Issue #1683368: object.__new__ and object.__init__ raise a TypeError if they - Issue #1683368: object.__new__ and object.__init__ raise a TypeError if they
are passed arguments and their complementary method is not overridden. are passed arguments and their complementary method is not overridden.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment