summaryrefslogtreecommitdiffstats
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-07-23 06:44:05 (GMT)
committerGitHub <noreply@github.com>2017-07-23 06:44:05 (GMT)
commitc824cc8426a16dd9f3949a3ed135523d37787bae (patch)
tree2653e36c69b6e77eafc4d0b8346f0800d9a80a06 /Python/Python-ast.c
parente78dc0aaf03cd98373910150c2d35418cf938254 (diff)
downloadcpython-c824cc8426a16dd9f3949a3ed135523d37787bae.zip
cpython-c824cc8426a16dd9f3949a3ed135523d37787bae.tar.gz
cpython-c824cc8426a16dd9f3949a3ed135523d37787bae.tar.bz2
[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 8a9cd20edca7d01b68292036029ae3735ce65edd) * 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.
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions