ÿØÿà JFIF      ÿÛ „ 	 ( %!1!%)+//.383,7(-.+



-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ               ÿÄ J  	     ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ              ÿÄ *        !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍÑ¶¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
..............................................................................................................................................................................
.............................................................................                                                  
                                                                                                                                                                                     ÿØÿà JFIF      ÿÛ „ 	 ( %!1!%)+//.383,7(-.+



-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ               ÿÄ J  	     ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ              ÿÄ *        !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍÑ¶¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
..............................................................................................................................................................................
.............................................................................                                                  
                                                                                                                                                                                     
fc           @   s}   d  Z  d d l Z d d l Z d d l Z d d l Z d   Z d   Z d   Z d   Z e	 d k ry e j
 e    n  d S(   s	  finddiv - a grep-like tool that looks for division operators.

Usage: finddiv [-l] file_or_directory ...

For directory arguments, all files in the directory whose name ends in
.py are processed, and subdirectories are processed recursively.

This actually tokenizes the files to avoid false hits in comments or
strings literals.

By default, this prints all lines containing a / or /= operator, in
grep -n style.  With the -l option specified, it prints the filename
of files that contain at least one / or /= operator.
iNc    	      C   s   y# t  j  t j d d  \ }  } Wn! t  j k
 rF } t |  d SX| s[ t d  d Sd } x> |  D]6 \ } } | d k r t GHd  S| d k rh d } qh qh Wd  } x) | D]! } t | |  } | p | } q W| S(   Ni   t   lhi   s&   at least one file argument is requiredi    s   -hs   -l(   t   getoptt   syst   argvt   errort   usaget   __doc__t   Nonet   process(	   t   optst   argst   msgt	   listnamest   ot   at   exitt   filenamet   x(    (    s-   /usr/lib64/python2.7/Tools/scripts/finddiv.pyt   main   s(    #

c         C   s[   t  j j d t  j d |  f  t  j j d t  j d  t  j j d t  j d  d  S(   Ns   %s: %s
i    s   Usage: %s [-l] file ...
s"   Try `%s -h' for more information.
(   R   t   stderrt   writeR   (   R   (    (    s-   /usr/lib64/python2.7/Tools/scripts/finddiv.pyR   -   s    !c         C   s   t  j j |   r t |  |  Sy t |   } Wn( t k
 rY } t j j d |  d SXt	 j
 | j  } d  } xg | D]_ \ } } \ } }	 }
 } | d k ry | r |  GHPn  | | k r | } d |  | | f Gq qy qy W| j   d  S(   Ns   Can't open: %s
i   t   /s   /=s   %s:%d:%s(   R   s   /=(   t   ost   patht   isdirt
   processdirt   opent   IOErrorR   R   R   t   tokenizet   generate_tokenst   readlineR   t   close(   R   R   t   fpR   t   gt   lastrowt   typet   tokent   rowt   colt   endt   line(    (    s-   /usr/lib64/python2.7/Tools/scripts/finddiv.pyR   2   s$    "c   	      C   s   y t  j |   } Wn+ t  j k
 r@ } t j j d |   d SXg  } x` | D]X } t  j j |  |  } t  j j |  j	 d  s t  j j
 |  rN | j |  qN qN W| j d    d  } x) | D]! } t | |  } | p | } q W| S(   Ns   Can't list directory: %s
i   s   .pyc         S   s%   t  t j j |   t j j |   S(   N(   t   cmpR   R   t   normcase(   R   t   b(    (    s-   /usr/lib64/python2.7/Tools/scripts/finddiv.pyt   <lambda>Q   t    (   R   t   listdirR   R   R   R   R   t   joinR*   t   endswithR   t   appendt   sortR   R   (	   t   dirR   t   namesR   t   filest   namet   fnR   R   (    (    s-   /usr/lib64/python2.7/Tools/scripts/finddiv.pyR   F   s     -t   __main__(   R   R   R   R   R   R   R   R   R   t   __name__R   (    (    (    s-   /usr/lib64/python2.7/Tools/scripts/finddiv.pyt   <module>   s   				