MCPcopy
hub / github.com/satwikkansal/wtfpython / remove_from_beginning

Function remove_from_beginning

irrelevant/notebook_generator.py:186–190  ·  view source on GitHub ↗
(tokens, line)

Source from the content-addressed store, hash-verified

184
185
186def remove_from_beginning(tokens, line):
187 for token in tokens:
188 if line.lstrip().startswith(token):
189 line = line.replace(token, "")
190 return line
191
192
193def inspect_and_sanitize_code_lines(lines):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected