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 | ea6e8ed56622f95a36f940d19ad9403dbd01c567 (patch) | |
tree | 1dac97a83712be72e3e5429c1d68e3ab1f65280d /romstr.py | |
parent | c671840136e4c0bcf51746e551650403d6995233 (diff) |
allow unicode addresses in RomStr.to_asm
original-commit-id: a1579ab5193d4f0bf0d751b335a06dddf9ba3dfa
Diffstat (limited to 'romstr.py')
-rw-r--r-- | romstr.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |