Nick Coghlan added the comment: I think there's an open issue somewhere pointing out that _iter_file_finder doesn't handle PEP 420 namespace packages correctly, precisely because it's still looking for an __init__.py file.
So I'd suggest not worry about changing the __init__.py handling here, and instead just add a new test case to test_pkgutil that fails with the old traversal code and passes with the new code. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29769> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com