summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/database.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/database.py b/python/database.py
index 1b07435e..f659805a 100644
--- a/python/database.py
+++ b/python/database.py
@@ -310,7 +310,7 @@ class Database:
result = []
try:
for i in range(0, count.value):
- result.append(value[i])
+ result.append(core.pyNativeStr(value[i]))
return result
finally:
core.BNFreeStringList(value, count)
@@ -325,7 +325,7 @@ class Database:
result = {}
try:
for i in range(0, count.value):
- key = value[i]
+ key = core.pyNativeStr(value[i])
result[key] = self.read_global(key)
return result
finally: