From abfa14c721420d2638c48f080be0811bf24fabc8 Mon Sep 17 00:00:00 2001 From: Erez Shinan Date: Sun, 26 Feb 2017 12:07:29 +0200 Subject: [PATCH] Tiny fix in reconstruct_json (Py3) --- examples/reconstruct_json.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/reconstruct_json.py b/examples/reconstruct_json.py index 1a8df4e..27f02da 100644 --- a/examples/reconstruct_json.py +++ b/examples/reconstruct_json.py @@ -27,14 +27,14 @@ def test(): json_parser = Lark(json_grammar) tree = json_parser.parse(test_json) - # print '@@', tree.pretty() + # print ('@@', tree.pretty()) # for x in tree.find_data('true'): # x.data = 'false' # # x.children[0].value = '"HAHA"' new_json = Reconstructor(json_parser).reconstruct(tree) - print new_json - print json.loads(new_json) == json.loads(test_json) + print (new_json) + print (json.loads(new_json) == json.loads(test_json)) test()