summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--romstr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/romstr.py b/romstr.py
index e9fbab1..e1c243f 100644
--- a/romstr.py
+++ b/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