MCPcopy
hub / github.com/tornadoweb/tornado / _

Function _

tornado/platform/twisted.py:52–64  ·  view source on GitHub ↗
(d: Deferred)

Source from the content-addressed store, hash-verified

50
51 @gen.convert_yielded.register(Deferred)
52 def _(d: Deferred) -> Future:
53 f = Future() # type: Future[typing.Any]
54
55 def errback(failure: failure.Failure) -> None:
56 try:
57 failure.raiseException()
58 # Should never happen, but just in case
59 raise Exception("errback called without error")
60 except:
61 future_set_exc_info(f, sys.exc_info())
62
63 d.addCallbacks(f.set_result, errback)
64 return f

Callers 5

__init__Method · 0.85
format_dateMethod · 0.85
format_dayMethod · 0.85
listMethod · 0.85
extract_me.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected