Skip to content

Commit d229aa0

Browse files
committed
fix build on pre-3.13 Pythons
1 parent 252a12b commit d229aa0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/opcode.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"stack_effect", "HAVE_ARGUMENT", "EXTENDED_ARG"]
1010

1111
from _opcode import stack_effect
12-
from _opcode_metadata import _specializations, _specialized_instructions
12+
13+
# The build uses older versions of Python which do not have _opcode_metadata
14+
sys.version_info[:2] >= (3, 13):
15+
from _opcode_metadata import _specializations, _specialized_instructions
1316

1417
cmp_op = ('<', '<=', '==', '!=', '>', '>=')
1518

0 commit comments

Comments
 (0)