]> granicus.if.org Git - python/commit
Issue #18065: For frozen packages set __path__ to [].
authorBrett Cannon <brett@python.org>
Sat, 1 Jun 2013 03:18:39 +0000 (23:18 -0400)
committerBrett Cannon <brett@python.org>
Sat, 1 Jun 2013 03:18:39 +0000 (23:18 -0400)
commit3e0651b5fa45031b858556292f5623e264addfd0
treecbc860cfd294cb53ce0e37fa9dd320913054fad2
parent0e75c0688673da4fbaceae0b75e20e953751e86a
Issue #18065: For frozen packages set __path__ to [].

Previously __path__ was set to [__name__], but that could lead to bad
results if someone managed to circumvent the frozen importer and
somehow ended up with a finder that thought __name__ was a legit
directory/location.
Doc/whatsnew/3.4.rst
Lib/test/test_importlib/frozen/test_loader.py
Misc/NEWS
Python/import.c