MCPcopy Create free account
hub / github.com/kurtmckee/feedparser / http_error_default

Method http_error_default

feedparser/http.py:48–52  ·  view source on GitHub ↗
(self, req, fp, code, msg, headers)

Source from the content-addressed store, hash-verified

46
47class _FeedURLHandler(urllib.request.HTTPDigestAuthHandler, urllib.request.HTTPRedirectHandler, urllib.request.HTTPDefaultErrorHandler):
48 def http_error_default(self, req, fp, code, msg, headers):
49 # The default implementation just raises HTTPError.
50 # Forget that.
51 fp.status = code
52 return fp
53
54 def http_error_301(self, req, fp, code, msg, hdrs):
55 result = urllib.request.HTTPRedirectHandler.http_error_301(self, req, fp, code, msg, hdrs)

Callers 1

http_error_401Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected