Edit File: diff.pyo
� ��7ec�����������@���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���< &