We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 943bca6 commit a7a1e19Copy full SHA for a7a1e19
1 file changed
src/bytecode/flags.py
@@ -6,7 +6,7 @@
6
import bytecode as _bytecode
7
8
from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar
9
-from .utils import PY311, PY312, PY313
+from .utils import PY311, PY312, PY313, PY314
10
11
12
class CompilerFlags(IntFlag):
@@ -48,7 +48,7 @@ class CompilerFlags(IntFlag):
48
_opcode.opmap["GET_AWAITABLE"],
49
_opcode.opmap["GET_AITER"],
50
_opcode.opmap["GET_ANEXT"],
51
- _opcode.opmap["BEFORE_ASYNC_WITH"],
+ *((_opcode.opmap["BEFORE_ASYNC_WITH"],) if not PY314 else ()), # Removed in 3.14+
52
*((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+
53
_opcode.opmap["END_ASYNC_FOR"],
54
*((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11
0 commit comments