MCPcopy Index your code
hub / github.com/RustPython/RustPython / _call_chain

Method _call_chain

Lib/urllib/request.py:457–466  ·  view source on GitHub ↗
(self, chain, kind, meth_name, *args)

Source from the content-addressed store, hash-verified

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

Callers 2

_openMethod · 0.95
errorMethod · 0.95

Calls 3

getattrFunction · 0.85
funcFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected