[issue12082] Python/import.c still references fstat even with DONT_HAVE_FSTAT/!HAVE_FSTAT
Petri Lehtinen
report at bugs.python.org
Tue May 31 17:30:15 CEST 2011
Petri Lehtinen <petri at digip.org> added the comment:
The NullImporter is documented to raise ImportError on directories, not directories containing __init__.py:
http://docs.python.org/library/imp.html#imp.NullImporter
Checking for __init__.py{,c,o} seems doable to me without having stat().
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12082>
_______________________________________
More information about the Python-bugs-list
mailing list