MCPcopy Create free account
hub / github.com/ActiveState/code / echo

Function echo

recipes/Python/578188_Pants/recipe-578188.py:7–8  ·  view source on GitHub ↗
(string, newline=False)

Source from the content-addressed store, hash-verified

5p, a = (sys.argv + [None])[:2]
6
7def echo(string, newline=False):
8 sys.stdout.write(string + (newline and '\n' or ''))
9
10def start():
11 echo("Putting on pants ...", True)

Callers 6

startFunction · 0.70
stopFunction · 0.70
restartFunction · 0.70
statusFunction · 0.70
recipe-578188.pyFile · 0.70
recipe-580750.pyFile · 0.50

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected