diff --git a/a/graphDrawer.py b/b/graphDrawer.py index 46469b7..a41ac0b 100755 --- a/a/graphDrawer.py +++ b/b/graphDrawer.py @@ -37,8 +37,7 @@ def buildGraph(nid): buildGraph(child) def loads_invalid_obj_list(s): - decoder = JSONDecoder() - objs = [decoder.decode(x) for x in s.split()] + objs = [json.loads(x) for x in s.split("\n")] return objs nodes = loads_invalid_obj_list(sys.stdin.read().strip())