From a1579ab5193d4f0bf0d751b335a06dddf9ba3dfa Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sun, 27 Jan 2013 16:46:52 -0600 Subject: [PATCH] allow unicode addresses in RomStr.to_asm --- extras/romstr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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