From 1230404d0b7cd7a00fd3da7ad2aebb66d663fd08 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Mon, 9 Jan 2017 23:00:18 -0500 Subject: Use new style class definitions, add __init__ BinaryDataNotification --- python/binaryview.py | 7 +++++-- python/function.py | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/binaryview.py b/python/binaryview.py index 3467dcc3..af7faa32 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -41,7 +41,10 @@ import types import lineardisassembly -class BinaryDataNotification: +class BinaryDataNotification(object): + def __init__(self): + pass + def data_written(self, view, offset, length): pass @@ -1751,7 +1754,7 @@ class BinaryView(object): :rtype: None """ - class WaitEvent: + class WaitEvent(object): def __init__(self): self.cond = threading.Condition() self.done = False diff --git a/python/function.py b/python/function.py index 1843dd3d..7d03585c 100644 --- a/python/function.py +++ b/python/function.py @@ -830,7 +830,7 @@ class DisassemblyTextLine(object): return "<%#x: %s>" % (self.address, str(self)) -class FunctionGraphEdge: +class FunctionGraphEdge(object): def __init__(self, branch_type, arch, target, points): self.type = BranchType(branch_type) self.arch = arch -- cgit v1.3.1