]> granicus.if.org Git - python/commit
[3.6] bpo-21720: Restore the Python 2.7 logic in handling a fromlist. (GH-4118) ...
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 26 Oct 2017 09:02:54 +0000 (12:02 +0300)
committerGitHub <noreply@github.com>
Thu, 26 Oct 2017 09:02:54 +0000 (12:02 +0300)
commit2b5cbbb13c6c9138d04c3ca4eb7431f8c65d8e65
tree24d62b53398b6cc121835eeb54fdbfeb62180fbb
parent614ea48986f80d361043510ac3945f3dcd666c31
[3.6] bpo-21720: Restore the Python 2.7 logic in handling a fromlist. (GH-4118) (#4128)

BytesWarning no longer emitted when the fromlist argument of
__import__() or the __all__ attribute of the module contain bytes
instances..
(cherry picked from commit 41c56940c6edf3ea169332a6b039b6c8796f0475)
Lib/importlib/_bootstrap.py
Lib/test/test_importlib/import_/test_fromlist.py
Misc/NEWS.d/next/Core and Builtins/2017-10-25-15-51-37.bpo-21720.BwIKLP.rst [new file with mode: 0644]
Python/importlib.h