MCPcopy Index your code
hub / github.com/python/cpython / is_block_closer

Method is_block_closer

Lib/idlelib/pyparse.py:573–576  ·  view source on GitHub ↗

Return True if the last interesting statement closes a block.

(self)

Source from the content-addressed store, hash-verified

571 return self.lastch == ':'
572
573 def is_block_closer(self):
574 "Return True if the last interesting statement closes a block."
575 self._study2()
576 return _closere(self.code, self.stmt_start) is not None
577
578 def get_last_stmt_bracketing(self):
579 """Return bracketing structure of the last interesting statement.

Callers 1

Calls 1

_study2Method · 0.95

Tested by

no test coverage detected