]> granicus.if.org Git - python/commit
SF bug #438295: [Windows] __init__.py cause strange behavior
authorTim Peters <tim.peters@gmail.com>
Thu, 5 Jul 2001 03:47:53 +0000 (03:47 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 5 Jul 2001 03:47:53 +0000 (03:47 +0000)
commit0f9431fb180986767c58416b7c8fa3da66933802
tree504f20fa950163d5194827f50ff7ef1eb99ca7bf
parentc90acb95997de32cc6014814e686804914a9c0c3
SF bug #438295: [Windows] __init__.py cause strange behavior
Probable fix (the bug report doesn't have enough info to say for sure).
find_init_module():  Insist on a case-sensitive match for __init__ files.
Given __INIT__.PY instead, find_init_module() thought that was fine, but
the later attempt to do find_module("__INIT__.PY") didn't and its caller
silently suppressed the resulting ImportError.  Now find_init_module()
refuses to accept __INIT__.PY to begin with.
Bugfix candidate; specific to platforms with case-insensitive filesystems.
Python/import.c