added __repr__ to MemoryFlags

This commit is contained in:
Anton Lydike 2021-04-18 09:42:27 +02:00
parent c4a28c9d1b
commit f43c33b0d7

View File

@ -14,6 +14,13 @@ class MemoryFlags:
read_only: bool
executable: bool
def __repr__(self):
return "{}({},{})".format(
self.__class__.__name__,
'ro' if self.read_only else 'rw',
'x' if self.executable else '-'
)
@dataclass
class MemorySection: