python (3.11.7)

(root)/
lib/
python3.11/
dbm/
__pycache__/
__init__.cpython-311.pyc

edZgdZddlZddlZddlZddlZGddeZgdZda	iZ
eefZ	ddlm
Z
n
#e$rdZ
YnwxYwdd
ZdZedkr)ejd
dD]ZeeepdedSdS)aNGeneric interface to all dbm clones.

Use

        import dbm
        d = dbm.open(file, 'w', 0o666)

The returned object is a dbm.gnu, dbm.ndbm or dbm.dumb object, dependent on the
type of database being opened (determined by the whichdb function) in the case
of an existing dbm. If the dbm does not exist and the create or new flag ('c'
or 'n') was specified, the dbm type will be determined by the availability of
the modules (tested in the above order).

It has the following interface (key and data are strings):

        d[key] = data   # store data at key (may override data at
                        # existing key)
        data = d[key]   # retrieve data at key (raise KeyError if no
                        # such key)
        del d[key]      # delete data stored at key (raises KeyError
                        # if no such key)
        flag = key in d # true if the key exists
        list = d.keys() # return a list of all existing keys (slow!)

Future versions may change the order in which implementations are
tested for existence, and add interfaces to other dbm-like
implementations.
)openwhichdberrorNceZdZdS)rN)__name__
__module____qualname__@/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/dbm/__init__.pyrr&sDrr)dbm.gnudbm.ndbmdbm.dumb)ndbmrc&t_tD]9}	t|dg}n#t$rY"wxYwts|a|t|<:tstdtzd|vrt|nd}|%d|vsd|vrt}nnt
dd|d	krt
dd
|tvr(t
dd|t|}||||S)aOpen or create database at path given by *file*.

    Optional argument *flag* can be 'r' (default) for read-only access, 'w'
    for read-write access of an existing database, 'c' for read-write access
    to a new or existing database, and 'n' for read-write access to a new
    database.

    Note: 'r' and 'w' fail if the database doesn't exist; 'c' creates it
    only if it doesn't exist; and 'n' always creates a new database.
    Nr)fromlistzno dbm clone found; tried %sncrz=db file doesn't exist; use 'c' or 'n' flag to create a new dbzdb type could not be determinedz/db type is {0}, but the module is not available)	_defaultmod_names
__import__ImportError_modulesrrformatr)fileflagmodenamemodresults      rrr5sM	!	!D
 999




"! HTNN	G<vEFFF"ooWT]]]4F
~$;;#++CC(DEE
E	2Ah8999	x		Ah##)6&>>33	3v88D$%%%s%
22c.tj|}	tj|dzd}|tj|dzd}|dS#t
$rs	tj|dzd}|t+t
j|}|YdSn#t
$rYnwxYwYnwxYw	tj|dztj|dzj}|dkrd	Stj|dzd}	|	d
dvr	|d	S	|n#|wxYwn#t
$rYnwxYw	tj|d}n#t
$rYdSwxYw|5|	d}dddn#1swxYwY|dd
}t|d
krdS	tjd|\}n#tj
$rYdSwxYw|dvrdS	tjd|dd\}n#tj
$rYdSwxYwdS)auGuess which db package to use to open a db file.

    Return values:

    - None if the database file can't be read;
    - empty string if the file can be read but can't be recognized
    - the name of the dbm submodule (e.g. "ndbm" or "gnu") if recognized.

    Importing the given module may still fail, and opening the
    database using that module may still fail.
    s.pagrbs.dirrs.dbNs.datrr)'"rz=l)iΚWi͚WiϚWr
)osfsencodeiorcloseOSErrorrstatst_sizereadlenstructunpackr)filenamefdsizes16smagics       rrrbs0{8$$HGHw&--				GHw&--				z	6)400A
GGIIIIh''			!zz 			D	"

7"###wx')**2199:GHw&--	vvayyL((!
GGIIIII)
GGIIIIAGGIIIII



GHd##tt
ffRjj	AaCA1vv{{r=q))<rr
444y=s233x00<rr2sAA00
C-;ACC-
C'$C-&C''C-,C-19F#,F#F	F#4F#	FF##
F0/F04G


GGG??HH*IIII??JJ__main__r&UNKNOWN)rr)__doc____all__r.r,r5sys	Exceptionrrrrr0dbmrrrrrargvr7printr
rr<module>rGsM:'
&
&								







					I			
-	,	,
	DDD*&*&*&*&ZWWWtzHQRRL88
ggh,9h777788s9AA