MCPcopy Create free account
hub / github.com/EasyIME/PIME / _

Function _

python/python3/tornado/platform/twisted.py:138–150  ·  view source on GitHub ↗
(d: Deferred)

Source from the content-addressed store, hash-verified

136
137 @gen.convert_yielded.register(Deferred) # type: ignore
138 def _(d: Deferred) -> Future:
139 f = Future() # type: Future[Any]
140
141 def errback(failure: failure.Failure) -> None:
142 try:
143 failure.raiseException()
144 # Should never happen, but just in case
145 raise Exception("errback called without error")
146 except:
147 future_set_exc_info(f, sys.exc_info())
148
149 d.addCallbacks(f.set_result, errback)
150 return f

Callers 4

__init__Method · 0.50
format_dateMethod · 0.50
format_dayMethod · 0.50
listMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected