ÿØÿà 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 Z d d d d g Z d d l Z d d l Z e j d  Z e Z d	   Z	 d
   Z
 d   Z d   Z d   Z e d d  Z e d k r x e d g  D] Z e GHq Wd GHx% e d g d e D] Z e GHq Wn  d S(   sC  List python source files.

There are three functions to check whether a file is a Python source, listed
here with increasing complexity:

- has_python_ext() checks whether a file name ends in '.py[w]'.
- look_like_python() checks whether the file is not binary and either has
  the '.py[w]' extension or the first line contains the word 'python'.
- can_be_compiled() checks whether the file can be compiled by compile().

The file also must be of appropriate size - not bigger than a megabyte.

walk_python_files() recursively lists all Python files under the given directories.
s   Oleg Broytmann, Georg Brandlt   has_python_extt   looks_like_pythont   can_be_compiledt   walk_python_filesiNs	   [ --]c         C   s   t  r |  GHn  d  S(   N(   t   debug(   t   msg(    (    s.   /usr/lib64/python2.7/Tools/scripts/pysource.pyt   print_debug   s     c         C   s   y t  j |   j } Wn( t k
 r@ } t d |  | f  d  SX| d k re t d |  | f  d  Sy t |  d  SWn( t k
 r } t d |  | f  d  SXd  S(   Ns   %s: permission denied: %si   s!   %s: the file is too big: %d bytest   rUs   %s: access denied: %si   (   t   ost   statt   st_sizet   OSErrorR   t   Nonet   opent   IOError(   t   fullpatht   sizet   err(    (    s.   /usr/lib64/python2.7/Tools/scripts/pysource.pyt   _open!   s    c         C   s   |  j  d  p |  j  d  S(   Ns   .pys   .pyw(   t   endswith(   R   (    (    s.   /usr/lib64/python2.7/Tools/scripts/pysource.pyR    2   s    c         C   s   t  |   } | d  k r t S| j   } | j   t j |  rS t d |   t S|  j d  sq |  j d  ru t	 Sd | k r t	 St S(   Ns   %s: appears to be binarys   .pys   .pywt   python(
   R   R   t   Falset   readlinet   closet	   binary_ret   searchR   R   t   True(   R   t   infilet   line(    (    s.   /usr/lib64/python2.7/Tools/scripts/pysource.pyR   5   s    
c         C   su   t  |   } | d  k r t S| j   } | j   y t | |  d  Wn( t k
 rp } t d |  | f  t SXt S(   Nt   execs   %s: cannot compile: %s(	   R   R   R   t   readR   t   compilet	   ExceptionR   R   (   R   R   t   codeR   (    (    s.   /usr/lib64/python2.7/Tools/scripts/pysource.pyR   J   s    
c   
      c   s"  | d k r g  } n  x|  D] } t d |  t j j |  rY | |  r| Vqq t j j |  rt d  x t j |  D] \ } } } x* | D]" } | | k r | j |  q q WxE | D]= } t j j | |  }	 t d |	  | |	  r |	 Vq q Wq Wq t d  q Wd S(   s^      Recursively yield all Python source files below the given paths.

    paths: a list of files and/or directories to be checked.
    is_python: a function that takes a file name and checks whether it is a
               Python source file
    exclude_dirs: a list of directory base names that should be excluded in
                  the search
    s   testing: %ss       it is a directorys       unknown typeN(	   R   R   R   t   patht   isfilet   isdirt   walkt   removet   join(
   t   pathst	   is_pythont   exclude_dirsR"   t   dirpatht   dirnamest	   filenamest   excludet   filenameR   (    (    s.   /usr/lib64/python2.7/Tools/scripts/pysource.pyR   [   s&    
	
t   __main__t   .s
   ----------R)   (   t   __doc__t
   __author__t   __all__R   t   reR   R   R   R   R   R   R    R   R   R   R   t   __name__R   (    (    (    s.   /usr/lib64/python2.7/Tools/scripts/pysource.pyt   <module>   s"   					!	