Mercurial > cpython-lru_cache-weakref
view Lib/dbhash.py @ 58925:eecf1bef052d 2.6
Merged revisions 78207 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78207 | ezio.melotti | 2010-02-17 01:26:09 +0200 (Wed, 17 Feb 2010) | 1 line
#7930: fix stripid
........
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Tue, 16 Feb 2010 23:29:44 +0000 |
| parents | b45868fe489c |
| children | 751c6dd71b5e |
line wrap: on
line source
"""Provide a (g)dbm-compatible interface to bsddb.hashopen.""" import sys if sys.py3kwarning: import warnings warnings.warnpy3k("in 3.x, dbhash has been removed", DeprecationWarning, 2) try: import bsddb except ImportError: # prevent a second import of this module from spuriously succeeding del sys.modules[__name__] raise __all__ = ["error","open"] error = bsddb.error # Exported for anydbm def open(file, flag = 'r', mode=0666): return bsddb.hashopen(file, flag, mode)
