diff -r ffa851df0825 -r 2fb8b9db1c86 symbian-qemu-0.9.1-12/python-2.6.1/Lib/dbhash.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/symbian-qemu-0.9.1-12/python-2.6.1/Lib/dbhash.py Fri Jul 31 15:01:17 2009 +0100 @@ -0,0 +1,19 @@ +"""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)