mirror of
https://github.com/python/cpython.git
synced 2025-10-25 18:54:53 +00:00
closes gh-99508: fix TypeError in Lib/importlib/_bootstrap_external.py (GH-99635)
This commit is contained in:
parent
57dfb1c4c8
commit
c69cfcdb11
2 changed files with 4 additions and 1 deletions
|
|
@ -1144,7 +1144,8 @@ def get_code(self, fullname):
|
|||
source_mtime is not None):
|
||||
if hash_based:
|
||||
if source_hash is None:
|
||||
source_hash = _imp.source_hash(source_bytes)
|
||||
source_hash = _imp.source_hash(_RAW_MAGIC_NUMBER,
|
||||
source_bytes)
|
||||
data = _code_to_hash_pyc(code_object, source_hash, check_source)
|
||||
else:
|
||||
data = _code_to_timestamp_pyc(code_object, source_mtime,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue