ProxyDb: return bytes(handle) like actual database

This commit is contained in:
Doug Blank 2015-07-13 17:18:18 -04:00
parent 85a000ce67
commit ff36ddaa00

View File

@ -56,7 +56,7 @@ class ProxyCursor(object):
def __iter__(self):
for handle in self.get_handles():
yield handle, self.get_raw(handle)
yield bytes(handle, "utf-8"), self.get_raw(handle)
class ProxyMap(object):
"""
@ -72,7 +72,7 @@ class ProxyMap(object):
return self.get_raw(handle)
def keys(self):
return self.get_keys()
return [bytes(key, "utf-8") for key in self.get_keys()]
class ProxyDbBase(DbReadBase):
"""