diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-09-24 21:40:08 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-09-24 21:40:08 +0200 |
commit | 695dc094ab16a0df40712bf504bc2880c62e598f (patch) | |
tree | 197038df0e3ad4614c862b7a6d20d89608c038df /youtube_dl/utils.py | |
parent | 2cdeb20135d31ec568f016108d15735bfca33c10 (diff) | |
parent | 7f747732547fedc876bcdcc77ba53a56324d7e87 (diff) |
Merge branch 'automatic-signatures'
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 6 |
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: |