]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport of Tim's checkin 2.177:
authorThomas Wouters <thomas@python.org>
Wed, 23 May 2001 12:51:22 +0000 (12:51 +0000)
committerThomas Wouters <thomas@python.org>
Wed, 23 May 2001 12:51:22 +0000 (12:51 +0000)
commita29e4f3d7375c193978dc77e73853b6aca729564
tree482528b08433b2180903218317c8cdce3bdea233
parentdb9486f0b36066234cf87b5fb758a40ce9fa8871
Backport of Tim's checkin 2.177:

SF bug #417093: Case sensitive import: dir and .py file w/ same name
Directory containing
    Spam.py
    spam/__init__.py
Then "import Spam" caused a SystemError, because code checking for
the existence of "Spam/__init__.py" finds it on a case-insensitive
filesystem, but then bails because the directory it finds it in
doesn't match case, and then old code assumed that was still an error
even though it isn't anymore.  Changed the code to just continue
looking in this case (instead of calling it an error).  So
    import Spam
and
    import spam
both work now.
Python/import.c