diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-05-29 13:19:02 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-05-29 13:19:02 -0500 |
commit | 895f32e891b86c319c60e1430aa548092bd26cf8 (patch) | |
tree | 443f944ceac7db293a1e5bf1faa1cd358d70d6e3 /romstr.py | |
parent | 19e3c8ae4e2544ab7dc0794c9658ce592f240781 (diff) |
move AsmList into romstr.py too
original-commit-id: 0edf9eb8b8d5bdf74b8af18401a92c2ce7a2c2a3
Diffstat (limited to 'romstr.py')
-rw-r--r-- | romstr.py | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -23,3 +23,13 @@ class RomStr(str): """returns hex values from rom starting at offset until the given byte""" return self.interval(offset, self.find(chr(byte), offset) - offset, strings=strings) +class AsmList(list): + """simple wrapper to prevent all asm lines from being shown on screen""" + + def length(self): + """len(self)""" + return len(self) + + def __repr__(self): + return "AsmList(too long)" + |