Skip to content

Instantly share code, notes, and snippets.

View Mahito's full-sized avatar

Mahito Mahito

View GitHub Profile
FIELDS = ['cmd', 'command', 'start', 'end', 'delta', 'msg', 'stdout', 'stderr']
def human_log(res):
if type(res) == type(dict()):
for field in FIELDS:
if field in res.keys():
print '\n{0}:\n{1}'.format(field, res[field])
class CallbackModule(object):