MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _pad_whitespace

Function _pad_whitespace

tools/python-3.11.9-amd64/Lib/ast.py:332–340  ·  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

330
331
332def _pad_whitespace(source):
333 r"""Replace all chars except '\f\t' in a line with spaces."""
334 result = ''
335 for c in source:
336 if c in '\f\t':
337 result += c
338 else:
339 result += ' '
340 return result
341
342
343def get_source_segment(source, node, *, padded=False):

Callers 1

get_source_segmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected