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

Function is_all_white

Lib/idlelib/format.py:178–181  ·  view source on GitHub ↗

Return True if line is empty or all whitespace.

(line)

Source from the content-addressed store, hash-verified

176 return '\n'.join(comment_header+line for line in newdata) + block_suffix
177
178def is_all_white(line):
179 """Return True if line is empty or all whitespace."""
180
181 return re.match(r"^\s*$", line) is not None
182
183def get_indent(line):
184 """Return the initial space or tab indent of line."""

Callers 2

find_paragraphFunction · 0.85
reformat_paragraphFunction · 0.85

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…