diff options
| author | Gregory P. Smith <greg@mad-scientist.com> | 2007-01-05 01:59:42 +0000 |
|---|---|---|
| committer | Gregory P. Smith <greg@mad-scientist.com> | 2007-01-05 01:59:42 +0000 |
| commit | da045147511def46433d79a3a4e23505d4cb116c (patch) | |
| tree | bab63e0b0355de989d07ec6f472d6fcc52bbe7ea /Lib/bsddb/dbobj.py | |
| parent | 507761da13923f44032fe4ed8e366c377c14eff4 (diff) | |
| download | cpython-da045147511def46433d79a3a4e23505d4cb116c.tar.gz | |
Support linking of the bsddb module against BerkeleyDB 4.5.x
(will backport to 2.5)
Diffstat (limited to 'Lib/bsddb/dbobj.py')
| -rw-r--r-- | Lib/bsddb/dbobj.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/bsddb/dbobj.py b/Lib/bsddb/dbobj.py index 73a3010a0f..b74ee72f76 100644 --- a/Lib/bsddb/dbobj.py +++ b/Lib/bsddb/dbobj.py @@ -55,8 +55,9 @@ class DBEnv: return apply(self._cobj.set_lg_max, args, kwargs) def set_lk_detect(self, *args, **kwargs): return apply(self._cobj.set_lk_detect, args, kwargs) - def set_lk_max(self, *args, **kwargs): - return apply(self._cobj.set_lk_max, args, kwargs) + if db.version() < (4,5): + def set_lk_max(self, *args, **kwargs): + return apply(self._cobj.set_lk_max, args, kwargs) def set_lk_max_locks(self, *args, **kwargs): return apply(self._cobj.set_lk_max_locks, args, kwargs) def set_lk_max_lockers(self, *args, **kwargs): |
