Your IP : 18.118.144.50


Current Path : /opt/alt/python39/lib64/python3.9/dbm/__pycache__/
Upload File :
Current File : //opt/alt/python39/lib64/python3.9/dbm/__pycache__/__init__.cpython-39.opt-2.pyc

a

R�f��@s�gd�ZddlZddlZddlZddlZGdd�de�Zgd�ZdaiZ	ee
fZzddlmZWne
yvdZYn0dd	d
�Zdd�Zed
kr�ejdd�D]Zeee�p�de�q�dS))�open�whichdb�error�Nc@seZdZdS)rN)�__name__�
__module__�__qualname__�rr�1/opt/alt/python39/lib64/python3.9/dbm/__init__.pyr&sr)�dbm.gnu�dbm.ndbm�dbm.dumb)�ndbm�r�c	Cs�tdur\tD]>}zt|dgd�}Wnty8YqYn0tsB|a|t|<qts\tdt��d|vrlt|�nd}|dur�d|vs�d|vr�t}q�tdd��n:|dkr�tdd	��n$|tvr�tdd
�|���nt|}|�|||�S)Nr)�fromlistzno dbm clone found; tried %s�n�crz=db file doesn't exist; use 'c' or 'n' flag to create a new db�zdb type could not be determinedz/db type is {0}, but the module is not available)	�_defaultmod�_names�
__import__�ImportError�_modulesrr�formatr)�file�flag�mode�name�mod�resultrrr	r5s0


�rcCsz6t�|dd�}|��t�|dd�}|��WdSty�z>t�|dd�}|��tdur�t�|�}|��WYdSWnty�Yn0Yn0zvt�|d�t�|d�j}|dkr�WdSt�|dd�}z*|�d	�d
vr�W|��WdSW|��n
|��0Wnt�y&Yn0zt�|d�}Wnt�yNYdS0|�|�d�}Wd�n1�sv0Y|dd�}t	|�dk�r�d
Szt
�d|�\}Wnt
j�y�Yd
S0|dv�r�dSzt
�d|dd��\}Wnt
j�y
Yd
S0d
S)Nz.pag�rbz.dirrz.dbz.datrr�)�'�"��rz=l)iΚWi͚WiϚWr
���)
�ior�close�OSErrorr
�os�stat�st_size�read�len�structZunpackr)�filename�f�d�sizeZs16�s�magicrrr	rbsd
�*
r�__main__r!ZUNKNOWN)rr)�__all__r'r*r/�sys�	Exceptionrrrrr)Zdbmr
rrrr�argvr0�printrrrr	�<module>s$

-Y

?>