81320a
From 9a99db929323f60553b391c80d0395821121d593 Mon Sep 17 00:00:00 2001
81320a
From: Thomas Moschny <thomas.moschny@gmx.de>
81320a
Date: Tue, 19 Jan 2021 21:01:18 +0100
81320a
Subject: [PATCH] add 'linetable' to the preserved CodeType attributes (#1334)
81320a
81320a
add 'linetable' to the preserved CodeType attributes
81320a
81320a
co_linetable replaces co_lnotab as part of PEP 626 in Python 3.10.
81320a
---
81320a
 src/jinja2/debug.py | 1 +
81320a
 1 file changed, 1 insertion(+)
81320a
81320a
diff --git a/src/jinja2/debug.py b/src/jinja2/debug.py
81320a
index 5d8aec3..e256617 100644
81320a
--- a/src/jinja2/debug.py
81320a
+++ b/src/jinja2/debug.py
81320a
@@ -137,6 +137,7 @@ def fake_traceback(exc_value, tb, filename, lineno):
81320a
             "lnotab",
81320a
             "freevars",
81320a
             "cellvars",
81320a
+            "linetable",  # Python 3.10
81320a
         ):
81320a
             if isinstance(attr, tuple):
81320a
                 # Replace with given value.
81320a
-- 
81320a
2.29.2
81320a