HOME SHELL

NULLCOMMUNITY
 LiteSpeed
 Linux server2.poyrazhosting.com 3.10.0-962.3.2.lve1.5.77.el7.x86_64 #1 SMP Mon Dec 12 07:06:14 EST 2022 x86_64
 safemode : OFF
 MySQL: OFF | Perl: OFF | cURL: ON | WGet: OFF
  >  / lib64 / python2.7 /

Server Ip : 172.67.216.244




Filename/lib64/python2.7/dbhash.py
Size498
Permissionrw-r--r--
Owner
Create time06-Oct-2022 15:19
Last modified29-Jun-2022 08:27
Last accessed08-Dec-2022 15:07
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
"""Provide a (g)dbm-compatible interface to bsddb.hashopen."""

import sys
import warnings
warnings.warnpy3k("in 3.x, the dbhash module has been removed", stacklevel=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)