MCPcopy
hub / github.com/cool-RR/PySnooper / write

Function write

pysnooper/tracer.py:140–146  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

138 'content to file.')
139 if output is None:
140 def write(s):
141 stderr = sys.stderr
142 try:
143 stderr.write(s)
144 except UnicodeEncodeError:
145 # God damn Python 2
146 stderr.write(utils.shitcode(s))
147 elif is_path:
148 return FileWriter(output, overwrite).write
149 elif callable(output):

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected