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

Method only_whitespace_left_of_cursor

bpython/curtsiesfrontend/repl.py:966–968  ·  view source on GitHub ↗

returns true if all characters before cursor are whitespace

()

Source from the content-addressed store, hash-verified

964 """
965
966 def only_whitespace_left_of_cursor():
967 """returns true if all characters before cursor are whitespace"""
968 return not self.current_line[: self.cursor_offset].strip()
969
970 logger.debug("self.matches_iter.matches: %r", self.matches_iter.matches)
971 if only_whitespace_left_of_cursor():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected