| author | Faisal Memon <faisal.memon@nokia.com> |
| Thu, 02 Sep 2010 16:05:48 +0100 | |
| branch | graphics-phase-3 |
| changeset 97 | 23e14cbcf117 |
| parent 1 | 2fb8b9db1c86 |
| permissions | -rw-r--r-- |
"""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)