Restore accidentally deleted commits
[youtube-dl] / youtube_dl / utils.py
index 814a9b6be6aabc366d96c23bca5c9c3c1e80f8b6..201ed255dfacca6853f1388e5ad05b613eca4fb5 100644 (file)
@@ -66,6 +66,12 @@ try:
 except ImportError:  # Python 2
     from urllib2 import HTTPError as compat_HTTPError
 
+try:
+    from urllib.request import urlretrieve as compat_urlretrieve
+except ImportError:  # Python 2
+    from urllib import urlretrieve as compat_urlretrieve
+
+
 try:
     from subprocess import DEVNULL
     compat_subprocess_get_DEVNULL = lambda: DEVNULL