Import escape function directly from markupsafe (#9858)

Adds a direct dependency on markupsafe, instead of relying on the
implicit dependency via Flask.

This is in preparation of Flask 3.0 support, which will drop compat for
importing escape indirectly.
This commit is contained in:
Martin Weinelt 2024-02-16 13:08:44 +01:00 committed by GitHub
parent dd3dc7949a
commit 5720b63d70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
click == 8.1.*
Flask == 2.3.*
imutils == 0.5.*
markupsafe == 2.1.*
matplotlib == 3.7.*
mypy == 1.6.1
numpy == 1.23.*

View File

@ -24,11 +24,11 @@ from flask import (
Flask,
Response,
current_app,
escape,
jsonify,
make_response,
request,
)
from markupsafe import escape
from peewee import DoesNotExist, fn, operator
from playhouse.shortcuts import model_to_dict
from playhouse.sqliteq import SqliteQueueDatabase