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

Method WriteLine

recipes/Python/413268_Dependency/recipe-413268.py:127–133  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

125 def __init__(self, prefix=''):
126 self.prefix = prefix
127 def WriteLine(self, s):
128 lines = s.split('\n')
129 for line in lines:
130 if line:
131 print self.prefix, line
132 else:
133 print
134
135# ---------------------------------------------------------------------------------
136# Some third python module knows how to discover the current user's name

Callers

nothing calls this directly

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected