diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-01-27 16:46:52 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-01-27 16:46:52 -0600 |
commit | a1579ab5193d4f0bf0d751b335a06dddf9ba3dfa (patch) | |
tree | e6604d02397fafc76e53ec5e16487617e4bc803c /extras/romstr.py | |
parent | 500d47f4cca9a4f9c7a6909c9fd6f340abf1d022 (diff) |
allow unicode addresses in RomStr.to_asm
Diffstat (limited to 'extras/romstr.py')
-rw-r--r-- | extras/romstr.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/romstr.py b/extras/romstr.py index e9fbab180..e1c243f70 100644 --- a/extras/romstr.py +++ b/extras/romstr.py @@ -148,7 +148,7 @@ class RomStr(str): that will be parsed, so that large patches of data aren't parsed as code. """ - if type(address) == str and "0x" in address: + if type(address) in [str, unicode] and "0x" in address: address = int(address, 16) start_address = address |