Skip to content

Commit 1007a6e

Browse files
targosrichardlau
authored andcommitted
tools: patch jinja2 for Python 3.10 compat
PR-URL: nodejs#40296 Fixes: nodejs#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 80b7c4a commit 1007a6e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/inspector_protocol/jinja2/tests.py

Lines 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)