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

Function reflow_c_string

Parser/asdl_c.py:77–78  ·  view source on GitHub ↗
(s, depth)

Source from the content-addressed store, hash-verified

75 return lines
76
77def reflow_c_string(s, depth):
78 return '"%s"' % s.replace('\n', '\\n"\n%s"' % (' ' * depth * TABSIZE))
79
80def is_simple(sum_type):
81 """Return True if a sum is a simple.

Callers 3

visitProductMethod · 0.85
visitSumMethod · 0.85
visitConstructorMethod · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…