Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../lib64/python2..../bsddb
File: db.py
#----------------------------------------------------------------------
[0] Fix | Delete
# Copyright (c) 1999-2001, Digital Creations, Fredericksburg, VA, USA
[1] Fix | Delete
# and Andrew Kuchling. All rights reserved.
[2] Fix | Delete
#
[3] Fix | Delete
# Redistribution and use in source and binary forms, with or without
[4] Fix | Delete
# modification, are permitted provided that the following conditions are
[5] Fix | Delete
# met:
[6] Fix | Delete
#
[7] Fix | Delete
# o Redistributions of source code must retain the above copyright
[8] Fix | Delete
# notice, this list of conditions, and the disclaimer that follows.
[9] Fix | Delete
#
[10] Fix | Delete
# o Redistributions in binary form must reproduce the above copyright
[11] Fix | Delete
# notice, this list of conditions, and the following disclaimer in
[12] Fix | Delete
# the documentation and/or other materials provided with the
[13] Fix | Delete
# distribution.
[14] Fix | Delete
#
[15] Fix | Delete
# o Neither the name of Digital Creations nor the names of its
[16] Fix | Delete
# contributors may be used to endorse or promote products derived
[17] Fix | Delete
# from this software without specific prior written permission.
[18] Fix | Delete
#
[19] Fix | Delete
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS
[20] Fix | Delete
# IS* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
[21] Fix | Delete
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
[22] Fix | Delete
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL
[23] Fix | Delete
# CREATIONS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
[24] Fix | Delete
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
[25] Fix | Delete
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
[26] Fix | Delete
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
[27] Fix | Delete
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
[28] Fix | Delete
# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
[29] Fix | Delete
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
[30] Fix | Delete
# DAMAGE.
[31] Fix | Delete
#----------------------------------------------------------------------
[32] Fix | Delete
[33] Fix | Delete
[34] Fix | Delete
# This module is just a placeholder for possible future expansion, in
[35] Fix | Delete
# case we ever want to augment the stuff in _db in any way. For now
[36] Fix | Delete
# it just simply imports everything from _db.
[37] Fix | Delete
[38] Fix | Delete
import sys
[39] Fix | Delete
absolute_import = (sys.version_info[0] >= 3)
[40] Fix | Delete
[41] Fix | Delete
if not absolute_import :
[42] Fix | Delete
if __name__.startswith('bsddb3.') :
[43] Fix | Delete
# import _pybsddb binary as it should be the more recent version from
[44] Fix | Delete
# a standalone pybsddb addon package than the version included with
[45] Fix | Delete
# python as bsddb._bsddb.
[46] Fix | Delete
from _pybsddb import *
[47] Fix | Delete
from _pybsddb import __version__
[48] Fix | Delete
else:
[49] Fix | Delete
from _bsddb import *
[50] Fix | Delete
from _bsddb import __version__
[51] Fix | Delete
else :
[52] Fix | Delete
# Because this syntaxis is not valid before Python 2.5
[53] Fix | Delete
if __name__.startswith('bsddb3.') :
[54] Fix | Delete
exec("from ._pybsddb import *")
[55] Fix | Delete
exec("from ._pybsddb import __version__")
[56] Fix | Delete
else :
[57] Fix | Delete
exec("from ._bsddb import *")
[58] Fix | Delete
exec("from ._bsddb import __version__")
[59] Fix | Delete
[60] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function