]> granicus.if.org Git - python/commit
Raise TypeError if the name given to importlib.__import__() lacks an rpartition
authorBrett Cannon <bcannon@gmail.com>
Sun, 30 Aug 2009 19:08:58 +0000 (19:08 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sun, 30 Aug 2009 19:08:58 +0000 (19:08 +0000)
commit6afbaef2fd439e9c6a9269f07309f8bb91255fd3
tree972dcd115b44fcaa6aa27ab176cb104a6459e620
parent44b28a9f328f5688ceb774670a6db030fa54d5a3
Raise TypeError if the name given to importlib.__import__() lacks an rpartition
attribute. Was throwing AttributeError before. Discovered when running
test_builtin against importlib.

This exception change is specific to importlib.__import__() and does not apply to
import_module() as it is being done for compatibility reasons only.
Lib/importlib/_bootstrap.py
Lib/importlib/test/import_/test_api.py [new file with mode: 0644]
Lib/importlib/test/regrtest.py
Misc/NEWS