Skip to content
Myr

add 'linetable' to the preserved CodeType attributes (#1334)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

add 'linetable' to the preserved CodeType attributes co_linetable replaces co_lnotab as part of PEP 626 in Python 3.10.

authored by Thomas Moschny · committed by GitHub · parent e39c87c · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:src/jinja2/debug.py+1 added
128 unmodified lines
129 "firstlineno",130 "lnotab",131 "freevars",132 "cellvars",133 "linetable", # Python 3.10134 ):135 if isinstance(attr, tuple):136 # Replace with given value.137 code_args.append(attr[1])
125 unmodified lines