mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-01 19:10:12 +03:00
Fix a Python2.7 compatibility issue when calling urlparse
This commit is contained in:
parent
fae7e91728
commit
265cd70157
|
@ -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