Hacked By AnonymousFox

Current Path : /proc/thread-self/root/usr/lib64/python2.7/Tools/scripts/
Upload File :
Current File : //proc/thread-self/root/usr/lib64/python2.7/Tools/scripts/md5sum.pyc

�
�fc@s�dZdadadadtZddlZddlZddlZddl	Z	d�Z
ejd�Zejd�Z
ejd	ejd
�Zedks�eejdkr�ejeejd	ej��ndS(
s9Python utility to print MD5 checksums of argument files.
i�trbs?
usage: sum5 [-b] [-t] [-l] [-s bufsize] [file ...]
-b        : read files in binary mode (default)
-t        : read files in text mode (you almost certainly don't want this!)
-l        : print last pathname component only
-s bufsize: read buffer size (default %d)
file ...  : files to sum; '-' or no files means stdin
i����NcGs�d}|r7t|dt�r7|d|d }}n	tj}t|�dkrst|dt�rs|d}nxt|D]l}t|t�r�|dkr�ttjd|�p�|}q�t||�p�|}qzt	||�p�|}qzW|S(Nii����it-s<stdin>(
t
isinstancetfiletsyststdouttlentstrt
printsumfptstdintprintsumtsum(tfilestststouttf((s,/usr/lib64/python2.7/Tools/scripts/md5sum.pyRs	&

cCsyyt|t�}Wn.tk
rC}tjjd||f�dSXtrYt|�}nt|||�}|j�|S(Ns%s: Can't open: %s
i(	topentrmodetIOErrorRtstderrtwritetfnfilterRtclose(tfilenameRtfptmsgR
((s,/usr/lib64/python2.7/Tools/scripts/md5sum.pyR
+s
cCs�tj�}y1x*|jt�}|s+Pn|j|�qWWn.tk
rm}tjjd||f�dSX|jd|j	�|f�dS(Ns%s: I/O error: %s
is%s %s
i(
tmd5tnewtreadtbufsizetupdateRRRRt	hexdigest(RRRtmtdataR((s,/usr/lib64/python2.7/Tools/scripts/md5sum.pyR7sicCs�ytj|d�\}}Wn;tjk
rY}tjjdtjd|tf�dSXxt|D]l\}}|dkr�tjj	a
qa|dkr�daqa|dkr�d	aqa|d
krat|�a
qaqaW|s�dg}nt||�S(Nsblts:s	%s: %s
%siis-ls-bRs-ttrs-sR(tgetoptterrorRRRtargvtusagetostpathtbasenameRRtintRR(targsRtoptsRtota((s,/usr/lib64/python2.7/Tools/scripts/md5sum.pytmainEs"$		t__main__i(t__doc__RtNoneRRR&RR'R#RRRR
RR%R/t__name__texit(((s,/usr/lib64/python2.7/Tools/scripts/md5sum.pyt<module>s	
	

Hacked By AnonymousFox1.0, Coded By AnonymousFox