(h, req, url=to_url)
| 1271 | req.timeout = socket._GLOBAL_DEFAULT_TIMEOUT |
| 1272 | |
| 1273 | def redirect(h, req, url=to_url): |
| 1274 | h.http_error_302(req, MockFile(), 302, "Blah", |
| 1275 | MockHeaders({"location": url})) |
| 1276 | # Note that the *original* request shares the same record of |
| 1277 | # redirections with the sub-requests caused by the redirections. |
| 1278 |
nothing calls this directly
no test coverage detected