Provide an option for the base/rom extension that causes the toolchain id (ARMCC or GCCE) to be defined for
the C preprocessor phase of rombuild, enabling rom files to be conditionally included or excluded depending
on whether the toolchain can build them. This mimics the same change for Beagleboard.
"""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)