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

Method line_is_empty

bpython/repl.py:854–855  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

852 if indentation and self.config.dedent_after > 0:
853
854 def line_is_empty(line):
855 return not line.strip()
856
857 empty_lines = takewhile(line_is_empty, reversed(self.buffer))
858 if sum(1 for _ in empty_lines) >= self.config.dedent_after:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected