summaryrefslogtreecommitdiff
path: root/python/types.py
diff options
context:
space:
mode:
authorKyleMiles <krm504@nyu.edu>2018-07-13 19:23:31 -0400
committerKyleMiles <krm504@nyu.edu>2018-07-13 19:25:15 -0400
commit2c7f443ce0b3d92ea44acb440c1891344eacc6d4 (patch)
tree2b792808b858de83d7f2b90040b023534a4455a6 /python/types.py
parentb460b9495a91897d9f8ed192c148e5afc366fb59 (diff)
Python2/3 String Compatibility Fix
Diffstat (limited to 'python/types.py')
-rw-r--r--python/types.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/types.py b/python/types.py
index e8ce7464..12e7733f 100644
--- a/python/types.py
+++ b/python/types.py
@@ -30,6 +30,7 @@ from binaryninja.enums import SymbolType, TypeClass, NamedTypeReferenceClass, In
# 2-3 compatibility
from binaryninja import range
+from binaryninja import pyNativeStr
class QualifiedName(object):
@@ -41,7 +42,7 @@ class QualifiedName(object):
self.name = name.name
self.byte_name = [n.encode('charmap') for n in name.name]
else:
- self.name = [i.decode('charmap') for i in name]
+ self.name = [pyNativeStr(i) for i in name]
self.byte_name = name
def __str__(self):