]> granicus.if.org Git - python/commit
Issue #7732: Don't open a directory as a file anymore while importing a
authorVictor Stinner <victor.stinner@haypocalc.com>
Fri, 23 Sep 2011 16:54:40 +0000 (18:54 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Fri, 23 Sep 2011 16:54:40 +0000 (18:54 +0200)
commit53ffdc53bf0500e402682d1459a9a8d06573664c
tree8a31a9cea84833742ff378c663d5854dfe158746
parentda6eb5305fabdf4a4dd48c010724bcdf962d1612
Issue #7732: Don't open a directory as a file anymore while importing a
module. Ignore the direcotry if its name matchs the module name (e.g.
"__init__.py") and raise a ImportError instead.
Lib/test/test_import.py
Misc/NEWS
Python/import.c