From d4cd7ba22a148239096a43e8906a1d5cf53a8b5d Mon Sep 17 00:00:00 2001 From: Grey Li Date: Tue, 20 Feb 2024 18:13:18 +0800 Subject: [PATCH] Fix escape import and update jsmin version --- demos/http/app.py | 2 +- requirements/v1.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demos/http/app.py b/demos/http/app.py index 6add0ad7..fae33e90 100644 --- a/demos/http/app.py +++ b/demos/http/app.py @@ -11,7 +11,7 @@ except ImportError: from urllib.parse import urlparse, urljoin -from jinja2 import escape +from markupsafe import escape from jinja2.utils import generate_lorem_ipsum from flask import Flask, make_response, request, redirect, url_for, abort, session, jsonify diff --git a/requirements/v1.txt b/requirements/v1.txt index 60758edd..123acae5 100644 --- a/requirements/v1.txt +++ b/requirements/v1.txt @@ -15,7 +15,7 @@ flask-wtf==0.14.3 flask==1.1.2 itsdangerous==1.1.0 jinja2==2.11.1 -jsmin==2.2.2 +jsmin==3.0.1 mako==1.1.2 markupsafe==1.1.1 python-dateutil==2.8.1