Skip to content

Commit

Permalink
compat: (py2) urlparse = urllib.parse (py3)
Browse files Browse the repository at this point in the history
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 <[email protected]>
Closes: encode#6261
  • Loading branch information
stephenfin committed Oct 20, 2018
1 parent 9d001cd commit f1719c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
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
Expand Down

0 comments on commit f1719c7

Please sign in to comment.