1
0

create a class for transaction dialog

This commit is contained in:
ThomasV
2013-09-14 21:07:54 +02:00
parent 27977e6eb0
commit d51a8d0f25
9 changed files with 257 additions and 149 deletions

View File

@@ -24,7 +24,10 @@ def print_msg(*args):
def print_json(obj):
import json
s = json.dumps(obj,sort_keys = True, indent = 4)
try:
s = json.dumps(obj,sort_keys = True, indent = 4)
except TypeError:
s = repr(obj)
sys.stdout.write(s + "\n")
sys.stdout.flush()