Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /lib64/python2.7/Tools/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/Tools/scripts/md5sum.pyc
�
[��dc@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�}y0x)|jt�}|s+Pn|j|�qWn.tk
rl}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	
	

ZeroDay Forums Mini