0001 #---------------------------------------------------------------------- 0002 # Copyright (c) 1999-2001, Digital Creations, Fredericksburg, VA, USA 0003 # and Andrew Kuchling. All rights reserved. 0004 # 0005 # Redistribution and use in source and binary forms, with or without 0006 # modification, are permitted provided that the following conditions are 0007 # met: 0008 # 0009 # o Redistributions of source code must retain the above copyright 0010 # notice, this list of conditions, and the disclaimer that follows. 0011 # 0012 # o Redistributions in binary form must reproduce the above copyright 0013 # notice, this list of conditions, and the following disclaimer in 0014 # the documentation and/or other materials provided with the 0015 # distribution. 0016 # 0017 # o Neither the name of Digital Creations nor the names of its 0018 # contributors may be used to endorse or promote products derived 0019 # from this software without specific prior written permission. 0020 # 0021 # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS 0022 # IS* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 0023 # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 0024 # PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL 0025 # CREATIONS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 0026 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 0027 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 0028 # OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 0029 # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 0030 # TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 0031 # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 0032 # DAMAGE. 0033 #---------------------------------------------------------------------- 0034 0035 0036 # This module is just a placeholder for possible future expansion, in 0037 # case we ever want to augment the stuff in _db in any way. For now 0038 # it just simply imports everything from _db. 0039 0040 if __name__[:len('bsddb3.')] == 'bsddb3.': 0041 # import _pybsddb binary as it should be the more recent version from 0042 # a standalone pybsddb addon package than the version included with 0043 # python as bsddb._bsddb. 0044 from _pybsddb import * 0045 from _pybsddb import __version__ 0046 else: 0047 from _bsddb import * 0048 from _bsddb import __version__ 0049 0050 if version() < (3, 2, 0): 0051 raise ImportError, "correct BerkeleyDB symbols not found. Perhaps python was statically linked with an older version?" 0052
Generated by PyXR 0.9.4