MCPcopy Create free account
hub / github.com/dalunacrobate/DaProfiler / write

Function write

profiler.py:126–141  ·  view source on GitHub ↗
(typee,objectt)

Source from the content-addressed store, hash-verified

124 f.close()
125
126def write(typee,objectt):
127 if output is not None:
128 with open(str(output),'a+',encoding='utf-8') as f:
129 f.write('\n')
130 if len(typee) == 0:
131 pass
132 else:
133 f.write((typee)+"\n")
134 for i in range(len(typee)):
135 f.write('=')
136 f.write('\n')
137 if type(objectt) == list:
138 for i in objectt:
139 f.write('- '+i+"\n")
140 elif type(objectt) == str:
141 f.write(objectt)
142
143tree = Tree()
144tree.create_node(f"{pren} {name} {email}", 1)

Callers 1

profiler.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected