Remove python2 urllib imports

Fix for "javascript:" script links in identifier
This commit is contained in:
Ozzieisaacs
2021-12-26 10:31:04 +01:00
parent f39dc100b4
commit 47f5e2ffb4
5 changed files with 9 additions and 18 deletions

View File

@@ -27,10 +27,8 @@
# http://flask.pocoo.org/snippets/62/
try:
from urllib.parse import urlparse, urljoin
except ImportError:
from urlparse import urlparse, urljoin
from urllib.parse import urlparse, urljoin
from flask import request, url_for, redirect