MCPcopy Create free account
hub / github.com/ActiveState/code / write

Method write

recipes/Python/576589_Compare_MySQL_DB/recipe-576589.py:124–131  ·  view source on GitHub ↗
(self, *msg)

Source from the content-addressed store, hash-verified

122 df.close()
123
124 def write(self, *msg):
125 df=open(self.outFile,'a')
126 for m in msg:
127 if type(m) is dict or type(m) is list:
128 df.write("%s\n" % pprint.pformat(m))
129 else:
130 df.write("%s\n" % str(m))
131 df.close()
132
133if __name__ == "__main__":
134 dc=dbCompare()

Callers 15

_reporthookFunction · 0.45
geturlFunction · 0.45
actually_writeFunction · 0.45
resetFunction · 0.45
clearFunction · 0.45
moveFunction · 0.45
upFunction · 0.45
downFunction · 0.45
rightFunction · 0.45
leftFunction · 0.45
endlineFunction · 0.45
cursorinvisibleFunction · 0.45

Calls 3

strFunction · 0.85
openFunction · 0.50
closeMethod · 0.45

Tested by

no test coverage detected