Fix a Python2.7 compatibility issue when calling urlparse

This commit is contained in:
Antonin 2018-11-04 21:43:08 +01:00
parent fae7e91728
commit 265cd70157

View File

@ -22,7 +22,7 @@ try:
import urllib.parse as urlparse # noqa
except ImportError:
# Python 2.7
from urlparse import urlparse # noqa
import urlparse # noqa
try:
from django.urls import ( # noqa