Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6b7b2bb

Browse filesBrowse 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 <technicalcute@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Christian Clauss <cclauss@me.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent cd7c340 commit 6b7b2bb
Copy full SHA for 6b7b2bb

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Open diff view settings
Collapse file

‎tools/inspector_protocol/jinja2/tests.py‎

Copy file name to clipboardExpand all lines: tools/inspector_protocol/jinja2/tests.py
+4-1Lines changed: 4 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.