(self, url, fp, errcode, errmsg, headers)
Default error handler: close the connection and raise OSError.
Default error handler: close the connection and raise OSError.
Default error handler : close the connection and raise OSError .
def http_error_default(self, url, fp, errcode, errmsg, headers):
        """Default error handler: close the connection and raise OSError."""
        fp.close()
        raise HTTPError(url, errcode, errmsg, headers, None)
def http_error_default ( self , url , fp , errcode , errmsg , headers ) : fp . close ( ) raise HTTPError ( url , errcode , errmsg , headers , None )