Fix deleting child_sid from nodes_dict one more time

Change-Id: If8bd0fffbd03bc049d693ce9eae09ae7088c7253
This commit is contained in:
smile-luobin 2016-12-24 11:54:01 +08:00 committed by Yuval Brik
parent 5c5ccc46be
commit de71d54143
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ def unpack_graph(packed_graph):
graph_nodes_dict[child_sid] = GraphNode(
nodes_dict[child_sid], ())
children.append(graph_nodes_dict[child_sid])
del(nodes_dict[child_sid])
nodes_dict.pop(child_sid, None)
graph_nodes_dict[parent_sid] = GraphNode(nodes_dict[parent_sid],
tuple(children))