MCPcopy Create free account
hub / github.com/bpython/bpython / _blocking_run_code

Method _blocking_run_code

bpython/curtsiesfrontend/coderunner.py:183–188  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

181 self.sigint_happened_in_main_context = True
182
183 def _blocking_run_code(self):
184 try:
185 unfinished = self.interp.runsource(self.source)
186 except SystemExit as e:
187 return SystemExitRequest(*e.args)
188 return Unfinished() if unfinished else Done()
189
190 def request_from_main_context(self, force_refresh=False):
191 """Return the argument passed in to .run_code(for_code)

Callers

nothing calls this directly

Calls 4

SystemExitRequestClass · 0.85
UnfinishedClass · 0.85
DoneClass · 0.85
runsourceMethod · 0.80

Tested by

no test coverage detected