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

Function _pad_whitespace

Lib/ast.py:352–360  ·  view source on GitHub ↗

r"""Replace all chars except '\f\t' in a line with spaces.

(source)

Source from the content-addressed store, hash-verified

350
351
352def _pad_whitespace(source):
353 r"""Replace all chars except '\f\t' in a line with spaces."""
354 result = ''
355 for c in source:
356 if c in '\f\t':
357 result += c
358 else:
359 result += ' '
360 return result
361
362
363def get_source_segment(source, node, *, padded=False):

Callers 1

get_source_segmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…