From 20c5820a0ed19e1702b9143945e9e92a54fd1006 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Mon, 10 Jun 2019 22:48:44 -0400 Subject: more updates for the undocumented properties changeset -- specifically revert on LinearDisassemglyLine so third-party plugins that leverage lineardisassemblylines can work again --- python/lineardisassembly.py | 59 ++++++--------------------------------------- 1 file changed, 7 insertions(+), 52 deletions(-) (limited to 'python/lineardisassembly.py') 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 -- cgit v1.3.1