mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-02 03:20:12 +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
|
import urllib.parse as urlparse # noqa
|
||||||
except ImportError:
|
except ImportError:
|
||||||
# Python 2.7
|
# Python 2.7
|
||||||
from urlparse import urlparse # noqa
|
import urlparse # noqa
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from django.urls import ( # noqa
|
from django.urls import ( # noqa
|
||||||
|
|
Loading…
Reference in New Issue
Block a user