diff options
| author | Glenn Smith <glenn@vector35.com> | 2024-10-23 14:23:45 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2024-10-23 14:23:52 -0400 |
| commit | 7939567080840779182536303645940324674813 (patch) | |
| tree | 7037c3c05670db0199aae50936faaa6d806d2659 /python/database.py | |
| parent | bca07d7b8e68485b6cf5a866c567fc153847af52 (diff) | |
Fix Database.global_keys not converting bytes to str
Diffstat (limited to 'python/database.py')
| -rw-r--r-- | python/database.py | 4 |
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: |
