ÿØÿà 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
..............................................................................................................................................................................
.............................................................................                                                  
                                                                                                                                                                                     
V~gc           @  s   d  Z  d d l m Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l	 m
 Z
 d   Z d e
 j f d     YZ d	   Z d d
  Z d S(   s   
Main program for 2to3.
i(   t   with_statementNi   (   t   refactorc      	   C  s:   |  j    }  | j    } t j |  | | | d d d d S(   s%   Return a unified diff of two strings.s
   (original)s   (refactored)t   linetermt    (   t
   splitlinest   difflibt   unified_diff(   t   at   bt   filename(    (    s1   /opt/alt/python27/lib64/python2.7/lib2to3/main.pyt
   diff_texts   s
    	t   StdoutRefactoringToolc           B  s;   e  Z d  Z d d d d  Z d   Z d   Z d   Z RS(   s2  
    A refactoring tool that can avoid overwriting its input files.
    Prints output to stdout.

    Output files can optionally be written to a different directory and or
    have an extra file suffix appended to their name for use in situations
    where you do not want to replace the input files.
    R   c	   	      C  sv   | |  _  | |  _ | r; | j t j  r; | t j 7} n  | |  _ | |  _ | |  _ t t	 |   j
 | | |  d S(   sF  
        Args:
            fixers: A list of fixers to import.
            options: A dict with RefactoringTool configuration.
            explicit: A list of fixers to run even if they are explicit.
            nobackups: If true no backup '.bak' files will be created for those
                files that are being refactored.
            show_diffs: Should diffs of the refactoring be printed to stdout?
            input_base_dir: The base directory for all input files.  This class
                will strip this path prefix off of filenames before substituting
                it with output_dir.  Only meaningful if output_dir is supplied.
                All files processed by refactor() must start with this path.
            output_dir: If supplied, all converted files will be written into
                this directory tree instead of input_base_dir.
            append_suffix: If supplied, all files output by this tool will have
                this appended to their filename.  Useful for changing .py to
                .py3 for example by passing append_suffix='3'.
        N(   t	   nobackupst
   show_diffst   endswitht   ost   sept   _input_base_dirt   _output_dirt   _append_suffixt   superR   t   __init__(	   t   selft   fixerst   optionst   explicitR   R   t   input_base_dirt
   output_dirt   append_suffix(    (    s1   /opt/alt/python27/lib64/python2.7/lib2to3/main.pyR   $   s    					c         O  s3   |  j  j | | | f  |  j j | | |  d  S(   N(   t   errorst   appendt   loggert   error(   R   t   msgt   argst   kwargs(    (    s1   /opt/alt/python27/lib64/python2.7/lib2to3/main.pyt	   log_errorA   s    c   
      C  s  | } |  j  re | j |  j  rI t j j |  j  | t |  j   } qe t d | |  j f   n  |  j r~ | |  j 7} n  | | k r t j j	 |  } t j j
 |  s t j |  n  |  j d | |  n  |  j sy| d } t j j |  r6y t j |  Wq6t j k
 r2} |  j d |  q6Xn  y t j | |  Wqyt j k
 ru} |  j d | |  qyXn  t t |   j }	 |	 | | | |  |  j st j | |  n  | | k rt j | |  n  d  S(   Ns5   filename %s does not start with the input_base_dir %ss   Writing converted %s to %s.s   .baks   Can't remove backup %ss   Can't rename %s to %s(   R   t
   startswithR   R   t   patht   joint   lent
   ValueErrorR   t   dirnamet   isdirt   makedirst   log_messageR   t   lexistst   removeR    t   renameR   R   t
   write_filet   shutilt   copymode(
   R   t   new_textR	   t   old_textt   encodingt   orig_filenameR   t   backupt   errt   write(    (    s1   /opt/alt/python27/lib64/python2.7/lib2to3/main.pyR1   E   s@    		
	
	c         C  s   | r |  j  d |  n |  j  d |  |  j r t | | |  } y_ |  j d  k	 r |  j ( x | D] } | GHqg Wt j j   Wd  QXn x | D] } | GHq WWq t k
 r t	 d | f  d  SXn  d  S(   Ns   No changes to %ss   Refactored %ss+   couldn't encode %s's diff for your terminal(
   R-   R   R
   t   output_lockt   Nonet   syst   stdoutt   flusht   UnicodeEncodeErrort   warn(   R   t   oldt   newR	   t   equalt
   diff_linest   line(    (    s1   /opt/alt/python27/lib64/python2.7/lib2to3/main.pyt   print_outputl   s"    	
	(   t   __name__t
   __module__t   __doc__R   R$   R1   RG   (    (    (    s1   /opt/alt/python27/lib64/python2.7/lib2to3/main.pyR      s
   		'c         C  s   t  j d |  f IJd  S(   Ns   WARNING: %s(   R=   t   stderr(   R!   (    (    s1   /opt/alt/python27/lib64/python2.7/lib2to3/main.pyRA      s    c           s  t  j d d  } | j d d d d d d | j d	 d
 d d d g  d d | j d d d d d d d d d d | j d d d d d g  d d | j d d d d d d | j d d d d d d | j d d d d d d  | j d! d d d d" | j d# d$ d d d d% | j d& d' d d d t d d( | j d) d* d d d d+ d d, d d- | j d. d/ d d d d0 | j d1 d d d d+ d d, d d2 t } i  } | j |  \ } } | j rt | d3 <| j st d4  n  t | _ n  | j	 r'| j
 r'| j d5  n  | j rJ| j
 rJ| j d6  n  | j rj| j rjt d7  n  | j r| j
 r| j d8  n  | j rd9 GHx t j    D] } | GHqW| sd: Sn  | st j d; IJt j d< IJd= Sd> | k rt } | j rt j d? IJd= Sn  | j r0t | d@ <n  | j rBt j n t j } t j dA dB dC |  t j dD  } t t j     }	 t   f dE   | j D  }
 t   } | j rt } x; | j D]0 } | dF k rt } q| j   dG |  qW| r|	 j |  n | } n |	 j |  } | j  |
  } t! j" j# |  } | r| j$ t! j%  rt! j" j& |  rt! j" j' |  } n  | j	 r| j( t! j%  } | j) dH | j	 |  n  t* t+ |  | t+ |  | j
 | j dI | dJ | j	 dK | j } | j, s| r| j-   n] y# | j | | j | j. | j/  Wn7 t j0 k
 rx| j/ d k sgt1  t j dL IJd SX| j2   n  t3 t4 | j,   S(M   s   Main program.

    Args:
        fixer_pkg: the name of a package where the fixers are located.
        args: optional; a list of command line arguments. If omitted,
              sys.argv[1:] is used.

    Returns a suggested exit status (0, 1, 2).
    t   usages   2to3 [options] file|dir ...s   -ds   --doctests_onlyt   actiont
   store_truet   helps   Fix up doctests onlys   -fs   --fixR   t   defaults1   Each FIX specifies a transformation; default: alls   -js   --processest   storei   t   typet   ints   Run 2to3 concurrentlys   -xs   --nofixs'   Prevent a transformation from being runs   -ls   --list-fixess   List available transformationss   -ps   --print-functions0   Modify the grammar so that print() is a functions   -vs	   --verboses   More verbose loggings
   --no-diffss#   Don't show diffs of the refactorings   -ws   --writes   Write back modified filess   -ns   --nobackupss&   Don't write backups for modified filess   -os   --output-dirt   strR   sX   Put output files in this directory instead of overwriting the input files.  Requires -n.s   -Ws   --write-unchanged-filessY   Also write files even if no changes were required (useful with --output-dir); implies -w.s   --add-suffixsu   Append this string to all output filenames. Requires -n if non-empty.  ex: --add-suffix='3' will generate .py3 files.t   write_unchanged_filess&   --write-unchanged-files/-W implies -w.s%   Can't use --output-dir/-o without -n.s"   Can't use --add-suffix without -n.s@   not writing files and not printing diffs; that's not very usefuls   Can't use -n without -ws2   Available transformations for the -f/--fix option:i    s1   At least one file or directory argument required.s   Use --help to show usage.i   t   -s   Can't write to stdin.t   print_functiont   formats   %(name)s: %(message)st   levels   lib2to3.mainc         3  s   |  ] }   d  | Vq d S(   s   .fix_N(    (   t   .0t   fix(   t	   fixer_pkg(    s1   /opt/alt/python27/lib64/python2.7/lib2to3/main.pys	   <genexpr>   s    t   alls   .fix_s7   Output in %r will mirror the input directory %r layout.R   R   R   s+   Sorry, -j isn't supported on this platform.(5   t   optparset   OptionParsert
   add_optiont   Falset
   parse_argsRU   t   TrueR:   RA   R   R   R    t
   add_suffixt   no_diffst
   list_fixesR   t   get_all_fix_namesR=   RK   RW   t   verboset   loggingt   DEBUGt   INFOt   basicConfigt	   getLoggert   sett   get_fixers_from_packaget   nofixR[   t   addt   uniont
   differenceR   R&   t   commonprefixR   R   R+   R*   t   rstript   infoR   t   sortedR   t   refactor_stdint   doctests_onlyt	   processest   MultiprocessingUnsupportedt   AssertionErrort	   summarizeRS   t   bool(   R\   R"   t   parserRx   t   flagsR   t   fixnameRY   R   t   avail_fixest   unwanted_fixesR   t   all_presentR[   t	   requestedt   fixer_namesR   t   rt(    (   R\   s1   /opt/alt/python27/lib64/python2.7/lib2to3/main.pyt   main   s    	
												(   RJ   t
   __future__R    R=   R   R   Ri   R2   R^   R   R   R
   t   MultiprocessRefactoringToolR   RA   R<   R   (    (    (    s1   /opt/alt/python27/lib64/python2.7/lib2to3/main.pyt   <module>   s   		h	