Skip to content

Commit f16d255

Browse files
targosrichardlau
authored andcommitted
tools: patch jinja2 for Python 3.10 compat
PR-URL: #40296 Backport-PR-URL: #40689 Fixes: #40294 Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Christian Clauss <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent fc517cb commit f16d255

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/inspector_protocol/jinja2/tests.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
"""
1111
import operator
1212
import re
13-
from collections import Mapping
13+
try:
14+
from collections.abc import Mapping
15+
except ImportError:
16+
from collections import Mapping
1417
from jinja2.runtime import Undefined
1518
from jinja2._compat import text_type, string_types, integer_types
1619
import decimal

0 commit comments

Comments
 (0)