aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-08-28 10:18:39 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-08-28 10:18:39 +0200
commit0e283428f777a23de3c5a522aa283f87cda1b40a (patch)
tree6535eb0f3159478125f9020e77b25b3f2367fa3d
parent2eabb80254f48d63a464247140d8e04a73418ded (diff)
downloadyoutube-dl-0e283428f777a23de3c5a522aa283f87cda1b40a.tar.xz
HTTPError is in urllib.error in Python 3, not in http.error
-rw-r--r--youtube_dl/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index f78b5fe78..e6fa634a7 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -61,7 +61,7 @@ except ImportError: # Python 2
import httplib as compat_http_client
try:
- from http.error import HTTPError as compat_HTTPError
+ from urllib.error import HTTPError as compat_HTTPError
except ImportError: # Python 2
from urllib2 import HTTPError as compat_HTTPError