(self, req, fp, code, msg, headers)
| 46 | |
| 47 | class _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) |