Skip to content

Commit

Permalink
print as a function
Browse files Browse the repository at this point in the history
  • Loading branch information
pipermerriam committed Jun 15, 2016
1 parent 6e797d9 commit 4c76daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serpent.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def main():
kwargs['source'] = 'cmdline'
o = globals()[cmd](*args, **kwargs)
if cmd in ['mk_full_signature', 'mk_contract_info_decl']:
print json.dumps(o)
print(json.dumps(o))
elif isinstance(o, (Token, Astnode, dict, list)):
print(repr(o))
elif cmd in ['mk_full_signature', 'get_prefix']:
Expand Down

0 comments on commit 4c76daa

Please sign in to comment.