allow unicode addresses in RomStr.to_asm

original-commit-id: a1579ab5193d4f0bf0d751b335a06dddf9ba3dfa
This commit is contained in:
Bryan Bishop 2013-01-27 16:46:52 -06:00
parent c671840136
commit ea6e8ed566

View File

@ -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