We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0e432a commit dccab7eCopy full SHA for dccab7e
planet/api/utils.py
@@ -22,7 +22,7 @@
22
import re
23
import string
24
import threading
25
-import urlparse
+from requests.compat import urlparse
26
from ._fatomic import atomic_open
27
28
_ISO_FMT = '%Y-%m-%dT%H:%M:%S.%f+00:00'
@@ -202,7 +202,7 @@ def get_filename_from_url(url):
202
:returns: a filename (i.e. ``basename``)
203
:rtype: str or None
204
"""
205
- path = urlparse.urlparse(url).path
+ path = urlparse(url).path
206
name = path[path.rfind('/')+1:]
207
return name or None
208
0 commit comments