MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _comment_line

Function _comment_line

tools/python-3.11.9-amd64/Lib/doctest.py:320–326  ·  view source on GitHub ↗

Return a commented form of the given line

(line)

Source from the content-addressed store, hash-verified

318 return True
319
320def _comment_line(line):
321 "Return a commented form of the given line"
322 line = line.rstrip()
323 if line:
324 return '# '+line
325 else:
326 return '#'
327
328def _strip_exception_details(msg):
329 # Support for IGNORE_EXCEPTION_DETAIL.

Callers 1

script_from_examplesFunction · 0.85

Calls 1

rstripMethod · 0.45

Tested by

no test coverage detected