Skip to content

Commit dbd1f72

Browse files
committed
tracer: add Python 3.14 support.
1 parent 1b62e0c commit dbd1f72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

amaranth/tracer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def get_var_name(depth=2, default=_raise_exception):
5858
return code.co_cellvars[imm]
5959
else:
6060
return code.co_freevars[imm - len(code.co_cellvars)]
61-
elif opc in ("LOAD_GLOBAL", "LOAD_NAME", "LOAD_ATTR", "LOAD_FAST", "LOAD_DEREF",
62-
"DUP_TOP", "BUILD_LIST", "CACHE", "COPY"):
61+
elif opc in ("LOAD_GLOBAL", "LOAD_NAME", "LOAD_ATTR", "LOAD_FAST", "LOAD_FAST_BORROW",
62+
"LOAD_DEREF", "DUP_TOP", "BUILD_LIST", "CACHE", "COPY"):
6363
imm = 0
6464
index += 2
6565
else:

0 commit comments

Comments
 (0)