summarylogtreecommitdiffstats
path: root/jinja-python-3.10.patch
diff options
context:
space:
mode:
Diffstat (limited to 'jinja-python-3.10.patch')
-rw-r--r--jinja-python-3.10.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/jinja-python-3.10.patch b/jinja-python-3.10.patch
new file mode 100644
index 000000000000..6cec8ea543c0
--- /dev/null
+++ b/jinja-python-3.10.patch
@@ -0,0 +1,33 @@
+--- a/runtime.py
++++ b/runtime.py
+@@ -315,7 +315,7 @@ class Context(with_metaclass(ContextMeta
+
+ # register the context as mapping if possible
+ try:
+- from collections import Mapping
++ from collections.abc import Mapping
+ Mapping.register(Context)
+ except ImportError:
+ pass
+--- a/sandbox.py
++++ b/sandbox.py
+@@ -14,7 +14,7 @@
+ """
+ import types
+ import operator
+-from collections import Mapping
++from collections.abc import Mapping
+ from jinja2.environment import Environment
+ from jinja2.exceptions import SecurityError
+ from jinja2._compat import string_types, PY2
+--- a/tests.py
++++ b/tests.py
+@@ -10,7 +10,7 @@
+ """
+ import operator
+ import re
+-from collections import Mapping
++from collections.abc import Mapping
+ from jinja2.runtime import Undefined
+ from jinja2._compat import text_type, string_types, integer_types
+ import decimal