1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-06-21 12:43:16 +00:00

Fix for Python 3

This commit is contained in:
Jonathan Rehm 2017-07-13 21:28:00 -07:00
parent bc665fd067
commit 85ce06850c

View File

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