Handle python3 sourcing of urlparse

This commit is contained in:
Ross McFarland
2019-07-29 08:48:17 -07:00
parent da09d9baaf
commit ce67824015
+4 -1
View File
@@ -9,7 +9,10 @@ import json
import re
from six import text_type
from unittest import TestCase
from urlparse import urlparse
try:
from urlparse import urlparse
except ImportError:
from urllib.parse import urlparse
from requests import HTTPError
from requests_mock import ANY, mock as requests_mock