summaryrefslogtreecommitdiff
path: root/src/jinja2/debug.py
diff options
context:
space:
mode:
authorThomas Moschny <thomas.moschny@gmx.de>2021-01-19 21:01:18 +0100
committerGitHub <noreply@github.com>2021-01-19 12:01:18 -0800
commit5f79ba633db0e6f56fc2d13cfc78547495f3d395 (patch)
tree956aba6ee7da0efddf9dd865dfd0ced9e3a80147 /src/jinja2/debug.py
parente39c87c4d474e36dde3b3576a674980e6f4699e1 (diff)
downloadjinja2-5f79ba633db0e6f56fc2d13cfc78547495f3d395.tar.gz
add 'linetable' to the preserved CodeType attributes (#1334)
add 'linetable' to the preserved CodeType attributes co_linetable replaces co_lnotab as part of PEP 626 in Python 3.10.
Diffstat (limited to 'src/jinja2/debug.py')
-rw-r--r--src/jinja2/debug.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jinja2/debug.py b/src/jinja2/debug.py
index 5cac28b..fac5719 100644
--- a/src/jinja2/debug.py
+++ b/src/jinja2/debug.py
@@ -130,6 +130,7 @@ def fake_traceback(exc_value, tb, filename, lineno):
"lnotab",
"freevars",
"cellvars",
+ "linetable", # Python 3.10
):
if isinstance(attr, tuple):
# Replace with given value.