From 5bb8520c8221b5f96c391efb4c5ae9817c295f27 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 13 Jan 2022 18:38:40 -0800 Subject: [PATCH] computed_settings: Remove deprecated Jinja2 autoescape extension. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s built in to Jinja2 as of 2.9. Fixes “DeprecationWarning: The 'autoescape' extension is deprecated and will be removed in Jinja 3.1. This is built in now.” Signed-off-by: Anders Kaseorg --- zproject/computed_settings.py | 1 - 1 file changed, 1 deletion(-) diff --git a/zproject/computed_settings.py b/zproject/computed_settings.py index b2bdf34529..9d861235ef 100644 --- a/zproject/computed_settings.py +++ b/zproject/computed_settings.py @@ -627,7 +627,6 @@ base_template_engine_settings: Dict[str, Any] = { "environment": "zproject.jinja2.environment", "extensions": [ "jinja2.ext.i18n", - "jinja2.ext.autoescape", ], "context_processors": [ "zerver.context_processors.zulip_default_context",