[Python-3000-checkins] r56890 - python/branches/py3k/Lib/bsddb/__init__.py

martin.v.loewis python-3000-checkins at python.org
Fri Aug 10 09:47:17 CEST 2007


Author: martin.v.loewis
Date: Fri Aug 10 09:47:16 2007
New Revision: 56890

Modified:
   python/branches/py3k/Lib/bsddb/__init__.py
Log:
Wrap set_location.


Modified: python/branches/py3k/Lib/bsddb/__init__.py
==============================================================================
--- python/branches/py3k/Lib/bsddb/__init__.py	(original)
+++ python/branches/py3k/Lib/bsddb/__init__.py	Fri Aug 10 09:47:16 2007
@@ -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()
 


More information about the Python-3000-checkins mailing list