summaryrefslogtreecommitdiff
path: root/python/flowgraph.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-06-24 09:19:08 -0400
committerPeter LaFosse <peter@vector35.com>2021-09-05 10:08:09 -0400
commitd37f7abfe4c1b23426b0fbdc85ae31788602ff28 (patch)
treeff106d8d52afc7cb4d85a1378a41e5c72a288c7d /python/flowgraph.py
parente0389d244e6211126267e060a9c61a1e75481b76 (diff)
Don't inherit from object anymore
Diffstat (limited to 'python/flowgraph.py')
-rw-r--r--python/flowgraph.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/flowgraph.py b/python/flowgraph.py
index 47ed187c..0fd2ae09 100644
--- a/python/flowgraph.py
+++ b/python/flowgraph.py
@@ -38,7 +38,7 @@ from . import highlight
from . import interaction
-class FlowGraphEdge(object):
+class FlowGraphEdge:
def __init__(self, branch_type, source, target, points, back_edge, style):
self.type = BranchType(branch_type)
self.source = source
@@ -58,7 +58,7 @@ class FlowGraphEdge(object):
return hash((self.type, self.source, self.target, self.points, self.back_edge, self.style))
-class EdgeStyle(object):
+class EdgeStyle:
def __init__(self, style=None, width=None, theme_color=None):
self.style = style if style is not None else EdgePenStyle.SolidLine
self.width = width if width is not None else 0
@@ -82,7 +82,7 @@ class EdgeStyle(object):
def __hash__(self):
return hash((self.style, self.width, self.color))
-class FlowGraphNode(object):
+class FlowGraphNode:
def __init__(self, graph = None, handle = None):
if handle is None:
if graph is None:
@@ -335,7 +335,7 @@ class FlowGraphNode(object):
return core.BNIsNodeValidForFlowGraph(graph.handle, self.handle)
-class FlowGraphLayoutRequest(object):
+class FlowGraphLayoutRequest:
def __init__(self, graph, callback = None):
self.on_complete = callback
self._cb = ctypes.CFUNCTYPE(None, ctypes.c_void_p)(self._complete)
@@ -367,7 +367,7 @@ class FlowGraphLayoutRequest(object):
self.on_complete = None
-class FlowGraph(object):
+class FlowGraph:
"""
``class FlowGraph`` implements a directed flow graph to be shown in the UI. This class allows plugins to
create custom flow graphs and render them in the UI using the flow graph report API.