Staging
v0.8.1
v0.8.1
Revision 8898b24bf919da00cb43f5834c74c71c78d1ccd6 authored by Victor Stinner on 02 March 2010, 22:46:25 UTC, committed by Victor Stinner on 02 March 2010, 22:46:25 UTC
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78596 | victor.stinner | 2010-03-02 23:44:42 +0100 (mar., 02 mars 2010) | 4 lines Issue #2973: Fix gcc warning on the 2nd argument of ASN1_item_d2i() and method->d2i(): OpenSSL API changed in OpenSSL 0.9.6m. Patch written by Daniel Black. ........
1 parent 63f2bee
dbhash.py
"""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)
Computing file changes ...