def raise_http_error(*args, **kw): raise urllib.error.HTTPError( "http://api.eveonline.com/eve/Error", 404, "Not found!", {}, StringIO(self.error_xml) )
def raise_http_error(*args, **kw): raise urllib.error.HTTPError( "http://api.eveonline.com/eve/Error", 404, "Not found!", {'Content-Encoding': 'gzip'}, StringIO(compress(self.error_xml)) )
def raise_http_error(*args, **kw): raise urllib.error.HTTPError( "http://api.eveonline.com/eve/Error", 404, "Not found!", {}, StringIO("This was not a nice XML api error.".encode()))