Skip to content

Commit

Permalink
fix build on pre-3.13 Pythons
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel committed Jul 16, 2023
1 parent 252a12b commit d125f87
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Lib/opcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
"stack_effect", "HAVE_ARGUMENT", "EXTENDED_ARG"]

from _opcode import stack_effect
from _opcode_metadata import _specializations, _specialized_instructions

import sys
# The build uses older versions of Python which do not have _opcode_metadata
if sys.version_info[:2] >= (3, 13):
from _opcode_metadata import _specializations, _specialized_instructions

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

Expand Down

0 comments on commit d125f87

Please sign in to comment.