MCPcopy Index your code
hub / github.com/RustPython/RustPython / _comment_line

Function _comment_line

Lib/doctest.py:347–353  ·  view source on GitHub ↗

Return a commented form of the given line

(line)

Source from the content-addressed store, hash-verified

345 return True
346
347def _comment_line(line):
348 "Return a commented form of the given line"
349 line = line.rstrip()
350 if line:
351 return '# '+line
352 else:
353 return '#'
354
355def _strip_exception_details(msg):
356 # Support for IGNORE_EXCEPTION_DETAIL.

Callers 1

script_from_examplesFunction · 0.85

Calls 1

rstripMethod · 0.45

Tested by

no test coverage detected