diff options
| author | Peter LaFosse <peter@vector35.com> | 2017-01-09 23:00:18 -0500 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2017-01-09 23:00:18 -0500 |
| commit | 1230404d0b7cd7a00fd3da7ad2aebb66d663fd08 (patch) | |
| tree | ef61c332c41edba4ecd49222f32fce9fd99b75bc /python | |
| parent | aae6c3aecdb04e8a6e33799287737a33a634418d (diff) | |
Use new style class definitions, add __init__ BinaryDataNotification
Diffstat (limited to 'python')
| -rw-r--r-- | python/binaryview.py | 7 | ||||
| -rw-r--r-- | python/function.py | 2 |
2 files changed, 6 insertions, 3 deletions
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 |
