create a class for transaction dialog
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user