| 457 | pass |
| 458 | |
| 459 | def _call_chain(self, chain, kind, meth_name, *args): |
| 460 | # Handlers raise an exception if no one else should try to handle |
| 461 | # the request, or return None if they can't but another handler |
| 462 | # could. Otherwise, they return the response. |
| 463 | handlers = chain.get(kind, ()) |
| 464 | for handler in handlers: |
| 465 | func = getattr(handler, meth_name) |
| 466 | result = func(*args) |
| 467 | if result is not None: |
| 468 | return result |
| 469 | |
| 470 | def open(self, fullurl, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): |
| 471 | # accept a URL or a Request object |