Wrap set_location.
diff --git a/Lib/bsddb/__init__.py b/Lib/bsddb/__init__.py
index 6225304..dfa77fd 100644
--- a/Lib/bsddb/__init__.py
+++ b/Lib/bsddb/__init__.py
@@ -346,6 +346,10 @@
key, value = self.db.last()
return key.decode("utf-8"), value
+ def set_location(self, key):
+ key, value = self.db.set_location(key.encode("utf-8"))
+ return key.decode("utf-8"), value
+
def sync(self):
return self.db.sync()
@@ -409,6 +413,10 @@
key, value = self.db.last()
return key, value.decode("utf-8")
+ def set_location(self, key):
+ key, value = self.db.set_location(key)
+ return key, value.decode("utf-8")
+
def sync(self):
return self.db.sync()