summaryrefslogtreecommitdiff
path: root/python/lineardisassembly.py
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2019-06-10 22:48:44 -0400
committerJordan Wiens <jordan@psifertex.com>2019-06-10 22:48:44 -0400
commit20c5820a0ed19e1702b9143945e9e92a54fd1006 (patch)
tree7fa00436a093e04d02cef6b6690c1679070cfc77 /python/lineardisassembly.py
parent6b4174969fa665031d05a843b5312798201dbf4a (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/lineardisassembly.py')
-rw-r--r--python/lineardisassembly.py59
1 files changed, 7 insertions, 52 deletions
diff --git a/python/lineardisassembly.py b/python/lineardisassembly.py
index 517e64c4..a48ce81b 100644
--- a/python/lineardisassembly.py
+++ b/python/lineardisassembly.py
@@ -61,59 +61,14 @@ class LinearDisassemblyPosition(object):
class LinearDisassemblyLine(object):
def __init__(self, line_type, func, block, line_offset, contents):
- self._type = line_type
- self._function = func
- self._block = block
- self._line_offset = line_offset
- self._contents = contents
+ self.type = line_type
+ self.function = func
+ self.block = block
+ self.line_offset = line_offset
+ self.contents = contents
def __str__(self):
- return str(self._contents)
+ return str(self.contents)
def __repr__(self):
- return repr(self._contents)
-
- @property
- def type(self):
- """ """
- return self._type
-
- @type.setter
- def type(self, value):
- self._type = value
-
- @property
- def function(self):
- """ """
- return self._function
-
- @function.setter
- def function(self, value):
- self._function = value
-
- @property
- def block(self):
- """ """
- return self._block
-
- @block.setter
- def block(self, value):
- self._block = value
-
- @property
- def line_offset(self):
- """ """
- return self._line_offset
-
- @line_offset.setter
- def line_offset(self, value):
- self._line_offset = value
-
- @property
- def contents(self):
- """ """
- return self.contents
-
- @contents.setter
- def contents(self, value):
- self.contents = value
+ return repr(self.contents) \ No newline at end of file