diff options
author | Karthikeyan Singaravelan <tir.karthi@gmail.com> | 2020-01-14 11:39:19 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-01-14 11:39:19 (GMT) |
commit | 9955f33cdbf27de270038dfbad37d15b160ecca2 (patch) | |
tree | 8ff7bf457eecc3c74dfe263cb1b0c48894e2e0e9 /Lib/zipimport.py | |
parent | 9362f8526e42157baf27df982b16f23f212c3c3a (diff) | |
download | cpython-9955f33cdbf27de270038dfbad37d15b160ecca2.zip cpython-9955f33cdbf27de270038dfbad37d15b160ecca2.tar.gz cpython-9955f33cdbf27de270038dfbad37d15b160ecca2.tar.bz2 |
[3.8] bpo-39033: Fix NameError in zipimport during hash validation (GH-17588) (GH-17642)
Fix `NameError` in `zipimport` during hash validation and add a regression test.
(cherry picked from commit 79f02fee1a542c440fd906fd54154c73fc0f8235)
https://bugs.python.org/issue39033
Diffstat (limited to 'Lib/zipimport.py')
-rw-r--r-- | Lib/zipimport.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/zipimport.py b/Lib/zipimport.py index fd917c1..5ef0a17 100644 --- a/Lib/zipimport.py +++ b/Lib/zipimport.py @@ -608,7 +608,7 @@ def _unmarshal_code(self, pathname, fullpath, fullname, data): ) try: - _boostrap_external._validate_hash_pyc( + _bootstrap_external._validate_hash_pyc( data, source_hash, fullname, exc_details) except ImportError: return None |