diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2019-06-10 22:48:44 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2019-06-10 22:48:44 -0400 |
| commit | 20c5820a0ed19e1702b9143945e9e92a54fd1006 (patch) | |
| tree | 7fa00436a093e04d02cef6b6690c1679070cfc77 /python/flowgraph.py | |
| parent | 6b4174969fa665031d05a843b5312798201dbf4a (diff) | |
more updates for the undocumented properties changeset -- specifically revert on LinearDisassemglyLine so third-party plugins that leverage lineardisassemblylines can work again
Diffstat (limited to 'python/flowgraph.py')
| -rw-r--r-- | python/flowgraph.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/python/flowgraph.py b/python/flowgraph.py index 1ef14269..69e3bd69 100644 --- a/python/flowgraph.py +++ b/python/flowgraph.py @@ -59,7 +59,6 @@ class FlowGraphNode(object): handle = core.BNCreateFlowGraphNode(graph.handle) self.handle = handle self._graph = graph - self.graph = graph if self._graph is None: self._graph = FlowGraph(handle = core.BNGetFlowGraphNodeOwner(self.handle)) @@ -198,7 +197,7 @@ class FlowGraphNode(object): branch_type = BranchType(edges[i].type) target = edges[i].target if target: - target = FlowGraphNode(self.graph, core.BNNewFlowGraphNodeReference(target)) + target = FlowGraphNode(self._graph, core.BNNewFlowGraphNodeReference(target)) points = [] for j in range(0, edges[i].pointCount): points.append((edges[i].points[j].x, edges[i].points[j].y)) @@ -216,7 +215,7 @@ class FlowGraphNode(object): branch_type = BranchType(edges[i].type) target = edges[i].target if target: - target = FlowGraphNode(self.graph, core.BNNewFlowGraphNodeReference(target)) + target = FlowGraphNode(self._graph, core.BNNewFlowGraphNodeReference(target)) points = [] for j in range(0, edges[i].pointCount): points.append((edges[i].points[j].x, edges[i].points[j].y)) @@ -278,7 +277,7 @@ class FlowGraphNode(object): :param BranchType edge_type: Type of edge to add :param FlowGraphNode target: Target node object """ - if not target.is_valid_for_graph(self.graph): + if not target.is_valid_for_graph(self._graph): raise ValueError("Target of edge has not been added to the owning graph") core.BNAddFlowGraphNodeOutgoingEdge(self.handle, edge_type, target.handle) |
