]> granicus.if.org Git - python/commit
bpo-21720: Restore the Python 2.7 logic in handling a fromlist. (#4118)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 26 Oct 2017 07:41:59 +0000 (10:41 +0300)
committerGitHub <noreply@github.com>
Thu, 26 Oct 2017 07:41:59 +0000 (10:41 +0300)
commit41c56940c6edf3ea169332a6b039b6c8796f0475
tree749eafdafa42c822e8251d045e7853daa148bf13
parent4eaf7f949069882e385f2297c9e70031caf9144c
bpo-21720: Restore the Python 2.7 logic in handling a fromlist. (#4118)

BytesWarning no longer emitted when the fromlist argument of
__import__() or the __all__ attribute of the module contain bytes
instances.
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