]> granicus.if.org Git - python/commit
bpo-34726: Fix handling of hash-based pycs in zipimport. (GH-10327)
authorElvis Pranskevichus <elvis@magic.io>
Wed, 7 Nov 2018 18:34:59 +0000 (13:34 -0500)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 7 Nov 2018 18:34:59 +0000 (20:34 +0200)
commita6e956bcb0edbfe7f18af9be2215a5326ea6bf05
tree8b3dc9558493973f8e069a76170e4ff8dc6665d4
parentbfe1839aa994f0d84471254418a4ecfa7c7c9b9c
bpo-34726: Fix handling of hash-based pycs in zipimport. (GH-10327)

Current support for hash-based bytecode files in `zipimport` is rather
sparse, which leads to test failures when the test suite is ran with
the ``SOURCE_DATE_EPOCH`` environment variable set.

This teaches zipimport to handle hash-based pycs properly.
Lib/test/test_cmd_line_script.py
Lib/zipimport.py
Misc/NEWS.d/next/Core and Builtins/2018-11-04-18-13-40.bpo-34022.U3btVj.rst [new file with mode: 0644]
Python/importlib_zipimport.h