MCPcopy Index your code
hub / github.com/bpython/bpython / callback_wrapper

Method callback_wrapper

bpython/urwid.py:536–537  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

534 """Ask for yes or no and call callback to return the result"""
535
536 def callback_wrapper(result):
537 callback(result.lower() in (_("y"), _("yes")))
538
539 self.prompt(q, callback_wrapper, single=True)
540

Callers

nothing calls this directly

Calls 1

_Function · 0.90

Tested by

no test coverage detected