]> granicus.if.org Git - python/commit
When the globals argument to importlib.__import__() contained any value for
authorBrett Cannon <bcannon@gmail.com>
Sun, 30 Aug 2009 19:53:48 +0000 (19:53 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sun, 30 Aug 2009 19:53:48 +0000 (19:53 +0000)
commitde4ebfe5597d503af097cd51ec51cc70fa79d250
treee4995b7c1ebf6126c33d858aaaded300fc93c584
parentce7d4cbc3bb49e331a119df21058e9bbd6f15f83
When the globals argument to importlib.__import__() contained any value for
__package__, it was used. This was incorrect since it could be set to None to
represent the fact that a proper value was unknown. Now None will trigger the
calculation for __package__.

Discovered when running importlib against test_importhooks.
Lib/importlib/_bootstrap.py
Lib/importlib/test/import_/test___package__.py
Misc/NEWS