1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-29 21:52:54 +00:00

HTTPError is in urllib.error in Python 3, not in http.error

This commit is contained in:
Jaime Marquínez Ferrándiz 2013-08-28 10:18:39 +02:00
parent 2eabb80254
commit 0e283428f7

View file

@ -61,7 +61,7 @@ except ImportError: # Python 2
import httplib as compat_http_client import httplib as compat_http_client
try: try:
from http.error import HTTPError as compat_HTTPError from urllib.error import HTTPError as compat_HTTPError
except ImportError: # Python 2 except ImportError: # Python 2
from urllib2 import HTTPError as compat_HTTPError from urllib2 import HTTPError as compat_HTTPError