From 265cd701572ce7884babcc30d20c9e34ff934331 Mon Sep 17 00:00:00 2001 From: Antonin Date: Sun, 4 Nov 2018 21:43:08 +0100 Subject: [PATCH] Fix a Python2.7 compatibility issue when calling urlparse --- rest_framework/compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/compat.py b/rest_framework/compat.py index 1d34828bd..ea09ce9bc 100644 --- a/rest_framework/compat.py +++ b/rest_framework/compat.py @@ -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