projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
HTTPError is in urllib.error in Python 3, not in http.error
[youtube-dl]
/
youtube_dl
/
utils.py
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index f78b5fe7889e6493ed8d87046dd7294fb3e3809f..e6fa634a7f1823a7e5a0f75c2b2eb79b18e9d2e3 100644
(file)
--- 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