Ńň
§6ŹLc           @   su   d  d k  Z  d  d k Z d  d k Z d d d  Z e d j o1 x. e i d D] Z d e e  e f GHqN Wn d S(   i˙˙˙˙Nt    c         C   s¨   t  i   } y t |  d  } Wn t j
 o d Gt GHd SX| i   } | i   x9 | D]1 } | o | i |  o q\ n | i |  q\ W| i |  | i	   S(   s&   Compute md5 hash of the specified filet   rbs$   Unable to open the file in readmode:N(
   t   hashlibt   md5t   opent   IOErrort   filenamet	   readlinest   closet
   startswitht   updatet	   hexdigest(   t   fileNamet   excludeLinet   includeLinet   mt   fdt   contentt   eachLine(    (    sE   C:\Documents and Settings\red08xgu\Desktop\python_webupdate\md5sum.pyR      s    	
 t   __main__i   s   %s %s(   t   ost   sysR   R   t   __name__t   argvt   eachFile(    (    (    sE   C:\Documents and Settings\red08xgu\Desktop\python_webupdate\md5sum.pyt   <module>   s    