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

Function _comment_line

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

Return a commented form of the given line

(line)

Source from the content-addressed store, hash-verified

339 return True
340
341def _comment_line(line):
342 "Return a commented form of the given line"
343 line = line.rstrip()
344 if line:
345 return '# '+line
346 else:
347 return '#'
348
349def _strip_exception_details(msg):
350 # Support for IGNORE_EXCEPTION_DETAIL.

Callers 1

script_from_examplesFunction · 0.85

Calls 1

rstripMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…