aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-09-21 14:19:30 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-09-21 14:40:35 +0200
commite0df6211cc9364f62406b2907fa830847324db53 (patch)
treee35ce2c9d52ae9eec7cb0cdb5a138ae2ef6c00ce /youtube_dl/utils.py
parentb00ca882a4c1069de1ec2d04ffd50905c0f8b97f (diff)
Restore accidentally deleted commits
That's what happens if you let Windows machines write :(
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 814a9b6be..201ed255d 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -67,6 +67,12 @@ 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
except ImportError: