summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2022-04-05 14:55:21 -0400
committerPeter LaFosse <peter@vector35.com>2022-04-08 08:57:02 -0400
commit24c01a8052cdfacba2a352d752d1a589cc1229e4 (patch)
treea19ff62651cb4ad7a47ac6ec5fd68adc10ca9107 /python
parent0ab559ff898a416ea43ffd557981b4082dffb0c6 (diff)
Properly decode strings for TypeLibrary.platfrom_names
Diffstat (limited to 'python')
-rw-r--r--python/typelibrary.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/typelibrary.py b/python/typelibrary.py
index fb91a8e3..bd5b950f 100644
--- a/python/typelibrary.py
+++ b/python/typelibrary.py
@@ -185,7 +185,7 @@ class TypeLibrary:
platforms = core.BNGetTypeLibraryPlatforms(self.handle, count)
assert platforms is not None, "core.BNGetTypeLibraryPlatforms returned None"
for i in range(0, count.value):
- result.append(platforms[i])
+ result.append(platforms[i].decode("utf-8"))
core.BNFreeStringList(platforms, count.value)
return result