MCPcopy Create free account
hub / github.com/DSL-Lab/StreamSplat / write

Method write

utils/general_utils.py:120–125  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

118 self.silent = silent
119
120 def write(self, x):
121 if not self.silent:
122 if x.endswith("\n"):
123 old_f.write(x.replace("\n", " [{}]\n".format(str(datetime.now().strftime("%d/%m %H:%M:%S")))))
124 else:
125 old_f.write(x)
126
127 def flush(self):
128 old_f.flush()

Callers 1

run_video.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected