???<!-- GIF89;a -->
123123123123
.....................................................................................................................................???<!-- GIF89;a -->
123123123123
.....................................................................................................................................ó
fc           @   se   d  Z  d d l Z d d l Z d d l Z d d l Z d d l Z d „  Z e d k ra e ƒ  n  d S(   sS   Command line interface to difflib.py providing diffs in four formats:

* ndiff:    lists every line and highlights interline changes.
* context:  highlights clusters of changes in a before/after format.
* unified:  highlights clusters of changes in an inline format.
* html:     generates side by side comparison with change highlights.

iÿÿÿÿNc          C   se  d }  t  j |  ƒ } | j d d d d t d d ƒ| j d d d d t d d	 ƒ| j d
 d d d t d d ƒ| j d d d d t d d ƒ| j d d d d d d d d ƒ| j ƒ  \ } } t | ƒ d k rñ | j ƒ  t j d ƒ n  t | ƒ d k r| j	 d ƒ n  | j
 } | \ } } t j t j | ƒ j ƒ } t j t j | ƒ j ƒ } t | d ƒ  }	 |	 j ƒ  }
 Wd  QXt | d ƒ  }	 |	 j ƒ  } Wd  QX| j rÖt j |
 | | | | | d | ƒ} n{ | j rôt j |
 | ƒ } n] | j r-t j ƒ  j |
 | | | d | j d | ƒ} n$ t j |
 | | | | | d | ƒ} t j j | ƒ d  S(   Ns&   usage: %prog [options] fromfile tofiles   -ct   actiont
   store_truet   defaultt   helps'   Produce a context format diff (default)s   -us   Produce a unified format diffs   -msA   Produce HTML side by side diff (can use -c and -l in conjunction)s   -ns   Produce a ndiff format diffs   -ls   --linest   typet   inti   s'   Set number of context lines (default 3)i    i   i   s*   need to specify both a fromfile and tofilet   Ut   nt   contextt   numlines(   t   optparset   OptionParsert
   add_optiont   Falset
   parse_argst   lent
   print_helpt   syst   exitt   errort   linest   timet   ctimet   ost   statt   st_mtimet   opent	   readlinest   ut   difflibt   unified_diffR   t   ndifft   mt   HtmlDifft	   make_filet   ct   context_difft   stdoutt
   writelines(   t   usaget   parsert   optionst   argsR   t   fromfilet   tofilet   fromdatet   todatet   ft	   fromlinest   tolinest   diff(    (    s*   /usr/lib64/python2.7/Tools/scripts/diff.pyt   main   s:    "
		'		0$t   __main__(   t   __doc__R   R   R   R   R
   R3   t   __name__(    (    (    s*   /usr/lib64/python2.7/Tools/scripts/diff.pyt   <module>	   s   <	&