bpo-45711: remove unnecessary DUP_TOP and POP in exception handling (GH-29495)

This commit is contained in:
Irit Katriel 2021-11-10 18:08:28 +00:00 committed by GitHub
parent 05fbd60147
commit 4cdeee5978
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 90 additions and 97 deletions

View file

@ -375,7 +375,7 @@ _code_type = type(_write_atomic.__code__)
# Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array
# in PC/launcher.c must also be updated.
MAGIC_NUMBER = (3462).to_bytes(2, 'little') + b'\r\n'
MAGIC_NUMBER = (3463).to_bytes(2, 'little') + b'\r\n'
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
_PYCACHE = '__pycache__'