ok
Direktori : /usr/lib64/python2.7/site-packages/lxml/html/ |
Current File : //usr/lib64/python2.7/site-packages/lxml/html/_diffcommand.pyo |
� �]Nc @ s d d l Z d d l Z d d l Z d d l Z d d l m Z d Z e j d d d e � Z e j d d d d d d d d d d �e j d d d d d d d d �d d � Z d � Z e j d e j e j B� Z e j d e j e j B� Z d � Z d � Z d S( i����N( t htmldifft t usagesR %prog [OPTIONS] FILE1 FILE2 %prog --annotate [OPTIONS] INFO1 FILE1 INFO2 FILE2 ...t descriptions -os --outputt metavart FILEt destt outputt defaultt -t helps File to write the difference tos -as --annotationt actiont store_truet annotations Do an annotationc C sI | d k r t j d } n t j | � \ } } | j rG t | | � St | � d k rx d GHt j � t j d � n | \ } } t | � } t | � } t | � d } t | � \ } } } t | | � } | | | } | j d k r| j d � s | d 7} n t j j | � n) t | j d � } | j | � | j � d S( Ni i s Error: you must give two filesR s t wb( t Nonet syst argvt parsert parse_argsR t annotatet lent print_helpt exitt read_filet split_bodyR R t endswitht stdoutt writet opent close( t argst optionst file1t file2t input1t input2t body1t pret body2t postt resultt f( ( s<