bpo-39033: Fix NameError in zipimport during hash validation (GH-17588)

Patch by Karthikeyan Singaravelan.
This commit is contained in:
Xtreak 2019-12-16 05:04:12 +05:30 committed by Nick Coghlan
parent d587272fe3
commit 79f02fee1a
5 changed files with 286 additions and 269 deletions

View file

@ -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