Your IP : 18.218.1.38


Current Path : /opt/alt/python38/lib64/python3.8/dbm/__pycache__/
Upload File :
Current File : //opt/alt/python38/lib64/python3.8/dbm/__pycache__/__init__.cpython-38.opt-2.pyc

U

i�f��@s�dddgZddlZddlZddlZddlZGdd�de�ZdddgZdaiZ	ee
fZzdd	lmZWne
k
r|dZYnXddd�Zd
d�Zedkr�ejdd�D]Zeee�p�de�q�dS)�open�whichdb�error�Nc@seZdZdS)rN)�__name__�
__module__�__qualname__�rr�1/opt/alt/python38/lib64/python3.8/dbm/__init__.pyr&s�dbm.gnu�dbm.ndbm�dbm.dumb)�ndbm�r�c	Cs�tdkr^tD]@}zt|dgd�}Wntk
r:YqYnXtsD|a|t|<qts^tdt��d|krnt|�nd}|dkr�d|ks�d|kr�t}q�tdd��n:|dkr�tdd	��n$|tkr�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


�cCs�z6t�|dd�}|��t�|dd�}|��WdStk
r�z>t�|dd�}|��tdk	r�t�|�}|��WYdSWntk
r�YnXYnXzht�|d�t�|d�j}|dkr�WdSt�|dd�}z|�d	�d
kr�W�
WdSW5|��XWntk
�rYnXzt�|d�}Wntk
�rHYdSX|�|�d�}W5QRX|dd�}t	|�dk�r�d
Szt
�d|�\}Wnt
jk
�r�Yd
SX|dk�r�dSzt
�d|dd��\}Wnt
jk
�r�Yd
SXd
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	rbs`

�__main__r!ZUNKNOWN)rr)�__all__r'r*r/�sys�	Exceptionrrrrr)Zdbmr
rrrr�argvr0�printrrrr	�<module>s$



-Y

?>