Explorar o código

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

Jaime Marquínez Ferrándiz %!s(int64=12) %!d(string=hai) anos
pai
achega
0e283428f7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/utils.py

+ 1 - 1
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