§
    ·âc&  ã                   óØ   — U d dl Z d dlZd dlZd dlZd dlmZ g d¢ZdZ	 	 	 dd„Zdd	„Z	ee j
                 ed
<   	 ddlmZ ddlmZ ddlmZ dS # e$ r ddlmZ ddlmZ ddlmZ Y dS w xY w)é    N)ÚType)ÚPatienceSequenceMatcherÚunified_diffÚunified_diff_files)r   é   é   Ú é   ú
c	              #   óf  K  — |€t           j        }|rdt          |¦  «        z   }|rdt          |¦  «        z   }d}	 |d| |¦  «                             |¦  «        D ]Õ}
|	sd|›|›|›�V — d|›|›|›�V — d}	|
d         d         |
d	         d
         |
d         d         |
d	         d         f\  }}}}d|dz   ||z
  |dz   ||z
  |fz  V — |
D ]c\  }}}}}|dk    r| ||…         D ]	}d|z   V — Œ
Œ#|dk    s|dk    r| ||…         D ]	}d|z   V — Œ
|dk    s|dk    r|||…         D ]	}d|z   V — Œ
ŒdŒÖdS )aŽ  
    Compare two sequences of lines; generate the delta as a unified diff.

    Unified diffs are a compact way of showing line changes and a few
    lines of context.  The number of context lines is set by 'n' which
    defaults to three.

    By default, the diff control lines (those with ---, +++, or @@) are
    created with a trailing newline.  This is helpful so that inputs
    created from file.readlines() result in diffs that are suitable for
    file.writelines() since both the inputs and outputs have trailing
    newlines.

    For inputs that do not have trailing newlines, set the lineterm
    argument to "" so that the output will be uniformly newline free.

    The unidiff format normally has a header for filenames and modification
    times.  Any or all of these may be specified using strings for
    'fromfile', 'tofile', 'fromfiledate', and 'tofiledate'.  The modification
    times are normally expressed in the format returned by time.ctime().

    Example:

    >>> for line in unified_diff('one two three four'.split(),
    ...             'zero one tree four'.split(), 'Original', 'Current',
    ...             'Sat Jan 26 23:30:50 1991', 'Fri Jun 06 10:20:52 2003',
    ...             lineterm=''):
    ...     print line
    --- Original Sat Jan 26 23:30:50 1991
    +++ Current Fri Jun 06 10:20:52 2003
    @@ -1,4 +1,4 @@
    +zero
     one
    -two
    -three
    +tree
     four
    Nú	Fz--- z+++ Tr   é   éÿÿÿÿr   r
   é   z@@ -%d,%d +%d,%d @@%sÚequalú ÚreplaceÚdeleteú-Úinsertú+)ÚdifflibÚSequenceMatcherÚstrÚget_grouped_opcodes)ÚaÚbÚfromfileÚtofileÚfromfiledateÚ
tofiledateÚnÚlinetermÚsequencematcherÚstartedÚgroupÚi1Úi2Új1Új2ÚtagÚlines                    ú7/usr/lib/python3/dist-packages/patiencediff/__init__.pyr   r      sü  è è € ðR ÐÝ!Ô1ˆàð 0Ø�c ,Ñ/Ô/Ñ/ˆØð ,Ø�C 
™OœOÑ+ˆ
à€GØ �  q¨!Ñ,Ô,×@Ò@ÀÑCÔCð %ð %ˆØð 	ð 	Ø"* (¨L¨L¸(¸(ÐCÐCÐCÐCÐCØ"( &¨*¨*°h°hÐ?Ð?Ð?Ð?ØˆGØ˜qœ !œ e¨B¤i°¤l°E¸!´H¸Q´KÀÀrÄÈ1ÄÐM‰ˆˆB��BØ%¨¨A©¨r°"©u°b¸±d¸B¸r¹EÀ8Ð(LÑLÐLÐLÐLØ#(ð 
	%ð 
	%ÑˆC��R˜˜RØ�gŠ~ˆ~Ø˜b ˜eœHð %ð %�DØ ™*Ð$Ð$Ð$Ð$ØØ�iÒÐ 3¨(¢? ?Ø˜b ˜eœHð %ð %�DØ ™*Ð$Ð$Ð$Ð$Ø�iÒÐ 3¨(¢? ?Ø˜b ˜eœHð %ð %�DØ ™*Ð$Ð$Ð$Ð$øð
	%ð%ð %ó    c                 ón  — | |k    rg S | dk    r2t           j                             ¦   «         }t          j        ¦   «         }nUt	          | d¦  «        5 }|                     ¦   «         }ddd¦  «         n# 1 swxY w Y   t          j        | ¦  «        j        }|dk    r2t           j                             ¦   «         }t          j        ¦   «         }nUt	          |d¦  «        5 }|                     ¦   «         }ddd¦  «         n# 1 swxY w Y   t          j        |¦  «        j        }t          ||| ||¬¦  «        S )z%Generate the diff for two files.
    r   ÚrN)r   r   r$   )	ÚsysÚstdinÚ	readlinesÚtimeÚopenÚosÚstatÚst_mtimer   )r   r   r$   Úlines_aÚtime_aÚfÚlines_bÚtime_bs           r-   r   r   e   sƒ  € ð 	ˆA‚v€vØˆ	ØˆC‚x€xÝ”)×%Ò%Ñ'Ô'ˆÝ”‘”ˆˆå�!�S‰\Œ\ð 	$˜QØ—k’k‘m”mˆGð	$ð 	$ð 	$ñ 	$ô 	$ð 	$ð 	$ð 	$ð 	$ð 	$ð 	$øøøð 	$ð 	$ð 	$ð 	$å”˜‘”Ô$ˆàˆC‚x€xÝ”)×%Ò%Ñ'Ô'ˆÝ”‘”ˆˆå�!�S‰\Œ\ð 	$˜QØ—k’k‘m”mˆGð	$ð 	$ð 	$ñ 	$ô 	$ð 	$ð 	$ð 	$ð 	$ð 	$ð 	$øøøð 	$ð 	$ð 	$ð 	$å”˜‘”Ô$ˆõ ˜ Ø!"¨1Ø(7ð9ñ 9ô 9ð 9s$   ÁA2Á2A6Á9A6ÃC?Ã?DÄDr   r   )ÚPatienceSequenceMatcher_c)Úrecurse_matches_c)Úunique_lcs_c)ÚPatienceSequenceMatcher_py)Úrecurse_matches_py)Úunique_lcs_py)r	   r	   r	   r	   r
   r   N)N)r   r6   r1   r4   Útypingr   Ú__all__Ú__version__r   r   r   Ú__annotations__Ú_patiencediff_cr>   r   r?   Úrecurse_matchesr@   Ú
unique_lcsÚImportErrorÚ_patiencediff_pyrA   rB   rC   © r.   r-   ú<module>rN      s\  ðð" €€€€Ø 	€	€	€	Ø 
€
€
€
Ø €€€Ø Ð Ð Ð Ð Ð à
KÐ
KÐ
K€à€ð =?Ø.2Ø!%ðC%ð C%ð C%ð C%ðL9ð 9ð 9ð 9ð8 ˜gÔ5Ô6Ð 6Ð 6Ñ 6ð
>ð=ð =ð =ð =ð =ð =àEÐEÐEÐEÐEÐEØ;Ð;Ð;Ð;Ð;Ð;Ð;Ð;øØð >ð >ð >ð>ð >ð >ð >ð >ð >ð.ð .ð .ð .ð .ð .à=Ð=Ð=Ð=Ð=Ð=Ð=Ð=Ð=ð>øøøs   ºA ÁA)Á(A)