Remove python2 urllib imports

Fix for "javascript:" script links in identifier
This commit is contained in:
Ozzieisaacs
2021-12-30 14:45:31 +01:00
parent f39dc100b4
commit 47f5e2ffb4
5 changed files with 9 additions and 18 deletions
+1 -4
View File
@@ -38,11 +38,8 @@ from sqlalchemy.sql.expression import true, false, and_, text, func
from werkzeug.datastructures import Headers
from werkzeug.security import generate_password_hash
from markupsafe import escape
from urllib.parse import quote
try:
from urllib.parse import quote
except ImportError:
from urllib import quote
try:
import unidecode