From 6b7b2bba41dc196dee47229d502725b1aed42134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Tue, 5 Oct 2021 13:34:39 +0200 Subject: [PATCH] tools: patch jinja2 for Python 3.10 compat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/40296 Backport-PR-URL: https://github.com/nodejs/node/pull/40689 Fixes: https://github.com/nodejs/node/issues/40294 Reviewed-By: Jiawen Geng Reviewed-By: James M Snell Reviewed-By: Richard Lau Reviewed-By: Christian Clauss Reviewed-By: Michaƫl Zasso --- tools/inspector_protocol/jinja2/tests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/inspector_protocol/jinja2/tests.py b/tools/inspector_protocol/jinja2/tests.py index 0adc3d4dbcbb88..39c7360253a709 100644 --- a/tools/inspector_protocol/jinja2/tests.py +++ b/tools/inspector_protocol/jinja2/tests.py @@ -10,7 +10,10 @@ """ import operator import re -from collections import Mapping +try: + from collections.abc import Mapping +except ImportError: + from collections import Mapping from jinja2.runtime import Undefined from jinja2._compat import text_type, string_types, integer_types import decimal