mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
Python3.0 bsddb testsuite compatibility improvements
This commit is contained in:
parent
cde6dc9a86
commit
69acb43327
2 changed files with 5 additions and 1 deletions
|
|
@ -67,6 +67,10 @@ if sys.version_info[0] >= 3 :
|
||||||
v = self._dbcursor.next_dup()
|
v = self._dbcursor.next_dup()
|
||||||
return self._fix(v)
|
return self._fix(v)
|
||||||
|
|
||||||
|
def next_nodup(self) :
|
||||||
|
v = self._dbcursor.next_nodup()
|
||||||
|
return self._fix(v)
|
||||||
|
|
||||||
def put(self, key, value, flags=0, dlen=-1, doff=-1) :
|
def put(self, key, value, flags=0, dlen=-1, doff=-1) :
|
||||||
if isinstance(key, str) :
|
if isinstance(key, str) :
|
||||||
key = bytes(key, charset)
|
key = bytes(key, charset)
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,7 @@
|
||||||
#error "eek! DBVER can't handle minor versions > 9"
|
#error "eek! DBVER can't handle minor versions > 9"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define PY_BSDDB_VERSION "4.7.3pre4"
|
#define PY_BSDDB_VERSION "4.7.3pre5"
|
||||||
|
|
||||||
/* Python object definitions */
|
/* Python object definitions */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue