From: Thomas Moschny Date: Tue, 19 Jan 2021 20:01:18 +0000 (+0100) Subject: add 'linetable' to the preserved CodeType attributes (#1334) X-Git-Tag: 3.0.0rc1~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f79ba633db0e6f56fc2d13cfc78547495f3d395;p=thirdparty%2Fjinja.git 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. --- diff --git a/src/jinja2/debug.py b/src/jinja2/debug.py index 5cac28ba..fac57199 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.