MCPcopy Create free account
hub / github.com/d62lu/3DCTN / IOStream

Class IOStream

util.py:36–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35
36class IOStream():
37 def __init__(self, path):
38 self.f = open(path, 'a')
39
40 def cprint(self, text):
41 print(text)
42 self.f.write(text+'\n')
43 self.f.flush()
44
45 def close(self):
46 self.f.close()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected