Browse Source

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

rtmp_test
Jaime Marquínez Ferrándiz 11 years ago
parent
commit
0e283428f7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/utils.py

+ 1
- 1
youtube_dl/utils.py 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


Loading…
Cancel
Save