Your IP : 3.148.105.127


Current Path : /opt/alt/python35/lib64/python3.5/dbm/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/dbm/__pycache__/__init__.cpython-35.opt-2.pyc



���]��@sdddgZddlZddlZddlZddlZGdd�de�ZdddgZdaiZ	ee
fZydd	lmZWne
k
r�dZYnXd
ddd�Zd
d�Zedkrx4ejdd�D]Zeee�pde�q�WdS)�open�whichdb�error�Nc@seZdZdS)rN)�__name__�
__module__�__qualname__�rr�-/opt/alt/python35/lib64/python3.5/__init__.pyr&szdbm.gnuzdbm.ndbmzdbm.dumb)�ndbm�ri�cCs<tdkrzxUtD]M}yt|ddg�}Wntk
rIwYnXtsV|a|t|<qWtsztdt��d|kr�t|�nd}|dkr�d|ks�d|kr�t}q)tdd��nQ|dkr�tdd	��n2|tkrtdd
j|���n
t|}|j|||�S)N�fromlistrzno dbm clone found; tried %s�n�crz#need 'c' or 'n' flag to open 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	r5s.

	

c>CsJyHtj|dd�}|j�tj|dd�}|j�dSWnttk
r�yMtj|dd�}|j�tdk	r�tj|�}|j�dSWntk
r�YnXYnXy|tj|d�tj|d�j}|dkr�dStj|dd�}z|jd	�dkr+dSWd|j�XWntk
rOYnXytj|d�}Wntk
r~dSYnX|�|jd�}WdQRX|dd
�}t	|�d
kr�dSyt
jd|�\}Wnt
jk
r�dSYnX|dkrdSy#t
jd|dd��\}Wnt
jk
rEdSYnXdS)Nz.pag�rbz.dirzdbm.ndbmz.dbz.datrzdbm.dumb��'�"��rz=l�ΚW�͚W�ϚWzdbm.gnu)rr)r"r#r$���)
�ior�close�OSErrorr
�os�stat�st_size�read�len�struct�unpackr)�filename�f�d�sizeZs16�s�magicrrr	ras`








		#	�__main__rZUNKNOWN)�__all__r&r)r.�sys�	Exceptionrrrrr(�dbmr
rrrr�argvr0�printrrrr	�<module>s$
,Y

?>