MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _remove_first_line_indent

Function _remove_first_line_indent

tensorflow/tools/docs/parser.py:700–702  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

698
699
700def _remove_first_line_indent(string):
701 indent = len(re.match(r'^\s*', string).group(0))
702 return '\n'.join([line[indent:] for line in string.split('\n')])
703
704
705PAREN_NUMBER_RE = re.compile(r'^\(([0-9.e-]+)\)')

Callers 1

_generate_signatureFunction · 0.85

Calls 4

groupMethod · 0.45
matchMethod · 0.45
joinMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected