compat: (py2) urlparse = urllib.parse (py3)

We were mistakenly importing the 'urlparse' function from the Python 2
'urlparse' module, as opposed to the module itself. Correct this.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Closes: #6261
This commit is contained in:
Stephen Finucane 2018-10-20 01:14:44 +01:00
parent 9d001cd84c
commit f1719c7c3f

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