]> granicus.if.org Git - python/commit
Issue #14938: importlib.abc.SourceLoader.is_package() now takes the
authorBrett Cannon <brett@python.org>
Sat, 16 Jun 2012 00:00:53 +0000 (20:00 -0400)
committerBrett Cannon <brett@python.org>
Sat, 16 Jun 2012 00:00:53 +0000 (20:00 -0400)
commitea0b8239401123fa7f41c74f6fc9ded1cf74088a
tree6d5afa0b55c1c5e1e39770d062b25d81a231535b
parent0450c9ed52deccd087c56b4da36f02c800c604a5
Issue #14938: importlib.abc.SourceLoader.is_package() now takes the
module name into consideration when determining whether a module is a
package or not. This prevents importing a module's __init__ module
directly and having it considered a package, which can lead to
duplicate sub-modules.

Thanks to Ronan Lamy for reporting the bug.
Doc/library/importlib.rst
Lib/importlib/_bootstrap.py
Lib/importlib/test/source/test_abc_loader.py
Misc/NEWS