Ņō žĒJc@s ddkZddkZddkZddkZddklZdZeidddeƒZei ddd d d d d dddƒei ddddd dddƒdd„Z d„Z ei deieiBƒZei deieiBƒZd„Zd„ZdS(i˙˙˙˙N(thtmldiffttusagesR%prog [OPTIONS] FILE1 FILE2 %prog --annotate [OPTIONS] INFO1 FILE1 INFO2 FILE2 ...t descriptions-os--outputtmetavartFILEtdesttoutputtdefaultt-thelpsFile to write the difference tos-as --annotationtactiont store_truet annotationsDo an annotationc CsS|djotid}nti|ƒ\}}|iot||ƒSt|ƒdjo dGHtiƒti dƒn|\}}t |ƒ}t |ƒ}t |ƒd}t |ƒ\}}} t ||ƒ} || | } |i djo2| idƒp| d7} ntii| ƒn*t|i dƒ} | i| ƒ| iƒdS(NiisError: you must give two filesR s twb(tNonetsystargvtparsert parse_argsR tannotatetlent print_helptexitt read_filet split_bodyRRtendswithtstdouttwritetopentclose( targstoptionstfile1tfile2tinput1tinput2tbody1tpretbody2tposttresulttf((s</usr/lib64/python2.6/site-packages/lxml/html/_diffcommand.pytmains.       cCsp|djotiiƒ}nMtii|ƒptd|ƒ‚n&t|dƒ}|iƒ}|iƒ|S(NR sInput file %s does not existtrb( RtstdintreadtostpathtexiststOSErrorRR(tfilenametcR*((s</usr/lib64/python2.6/site-packages/lxml/html/_diffcommand.pyR8s   s s cCsti|ƒ}|o$||iƒ }||iƒ}nti|ƒ}|o$||iƒ}||iƒ }n|||fS(N(t body_start_retsearchtendt body_end_retstart(thtmltmatchR&R(((s</usr/lib64/python2.6/site-packages/lxml/html/_diffcommand.pyRIscCsdGHtidƒdS(NsNot yet implementedi(RR(R R((s</usr/lib64/python2.6/site-packages/lxml/html/_diffcommand.pyRTs(toptparseRtreR/tlxml.html.diffRRt OptionParserRt add_optionRR+RtcompiletItSR5R8RR(((s</usr/lib64/python2.6/site-packages/lxml/html/_diffcommand.pyts6