cpython/Lib/importlib
Serhiy Storchaka c824cc8426 [3.5] Backport bpo-30876 (GH-2639), bpo-18018 and bpo-26367. (#2677)
* bpo-30876: Relative import from unloaded package now reimports the package
instead of failing with SystemError.

Relative import from non-package now fails with ImportError rather than
SystemError.
(cherry picked from commit 8a9cd20edc)

* bpo-18018: Import raises ImportError instead of SystemError if a relative
import is attempted without a known parent package.

* bpo-26367: importlib.__init__() raises ImportError like
builtins.__import__() when ``level`` is specified but without an accompanying
package specified.
2017-07-23 09:44:05 +03:00
..
__init__.py bpo-29862: Fix grammar in importlib.reload() exception (GH-809) (GH-812) 2017-03-25 03:42:38 -07:00
_bootstrap.py [3.5] Backport bpo-30876 (GH-2639), bpo-18018 and bpo-26367. (#2677) 2017-07-23 09:44:05 +03:00
_bootstrap_external.py [3.5] bpo-29537: Tolerate legacy invalid bytecode (#169) 2017-03-08 16:41:01 +10:00
abc.py Issue #26186: Remove an invalid type check in 2016-02-20 18:35:41 -08:00
machinery.py Issue #23911: Move path-based bootstrap code to a separate frozen module. 2015-05-02 19:15:18 -06:00
util.py [3.5] bpo-29537: Tolerate legacy invalid bytecode (#169) 2017-03-08 16:41:01 +10:00