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

Method write

pysnooper/tracer.py:164–168  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

162 self.overwrite = overwrite
163
164 def write(self, s):
165 with open(self.path, 'w' if self.overwrite else 'a',
166 encoding='utf-8') as output_file:
167 output_file.write(s)
168 self.overwrite = False
169
170
171thread_global = threading.local()

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected