mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-01 11:00:13 +03:00
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:
parent
9d001cd84c
commit
f1719c7c3f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user