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

pull/8/head
Jaime Marquínez Ferrándiz 2013-08-28 10:18:39 +02:00
rodzic 2eabb80254
commit 0e283428f7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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