Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 45d8e7b

Browse files
committed
update magic number for #20625
1 parent 7ef60cd commit 45d8e7b

2 files changed

Lines changed: 162 additions & 161 deletions

File tree

Lib/importlib/_bootstrap.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,12 +418,13 @@ def _call_with_frames_removed(f, *args, **kwds):
418418
# Python 3.4a1 3280 (remove implicit class argument)
419419
# Python 3.4a4 3290 (changes to __qualname__ computation)
420420
# Python 3.4a4 3300 (more changes to __qualname__ computation)
421+
# Python 3.4rc2 3310 (alter __qualname__ computation)
421422
#
422423
# MAGIC must change whenever the bytecode emitted by the compiler may no
423424
# longer be understood by older implementations of the eval loop (usually
424425
# due to the addition of new opcodes).
425426

426-
MAGIC_NUMBER = (3300).to_bytes(2, 'little') + b'\r\n'
427+
MAGIC_NUMBER = (3310).to_bytes(2, 'little') + b'\r\n'
427428
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
428429

429430
_PYCACHE = '__pycache__'

0 commit comments

Comments
 (0)