/usr/lib64/python2.6/site-packages/meld3
NameSizeModeActions
clearsilverprofile.py16530644editdlrm
clearsilverprofile.pyc21820644editdlrm
clearsilverprofile.pyo21820644editdlrm
cmeld3.so113600755editdlrm
example.py15480644editdlrm
example.pyc18190644editdlrm
example.pyo18190644editdlrm
meld3.py506530644editdlrm
meld3.pyc482860644editdlrm
meld3.pyo482860644editdlrm
melddiff.py6200644editdlrm
melddiff.pyc9990644editdlrm
melddiff.pyo9990644editdlrm
meldprofile.py17700644editdlrm
meldprofile.pyc22350644editdlrm
meldprofile.pyo22350644editdlrm
testclone.py13330644editdlrm
testclone.pyc15310644editdlrm
testclone.pyo15310644editdlrm
test_getiterator.py12400644editdlrm
test_getiterator.pyc19800644editdlrm
test_getiterator.pyo19800644editdlrm
test_meld3.py620790644editdlrm
test_meld3.pyc638230644editdlrm
test_meld3.pyo638230644editdlrm
zptprofile.py19720644editdlrm
zptprofile.pyc34460644editdlrm
zptprofile.pyo34460644editdlrm
__init__.py1560644editdlrm
__init__.pyc3340644editdlrm
__init__.pyo3340644editdlrm
Edit: /usr/lib64/python2.6/site-packages/meld3/meld3.pyo (48286B)
Lc"@snddkZddkZddkZddkZddkZddkZddklZyddklZddkl Z ddkl Z ddkl Z ddkl Z ddkl Z dd klZdd klZdd klZdd klZWnej oddklZddkl Z ddkl Z ddkl Z ddkl Z ddkl Z dd klZdd klZdd klZydd klZWnd ZnXnXddklZdddddddfZdddddfZeiediZedZdfdYZdfd YZeZ yddk!Z"Wnej o e#Z"nXe"oei$d! o e"Z%ne Z%d"Z&d#e&Z'd$Z(d%e'e(fZ)d&e(Z*d'Z+d#e+Z,e-e,Z.gZ/d(fd)YZ0d*fd+YZ1d,Z2d-e fd.YZ3d/efd0YZ4d1Z5d2Z6e#d3Z7d4Z8e#d5Z9eid6iZ:eid7iZ;d8Z<h d9d:6d9d;6d9d<6d9d6d9d=6d9d>6d9d6d9d6d9d?6d9d@6d9d6d9d6d9dA6Z=e<e=hd9dB6d9dC6Z>e<e>h d9dD6d9dE6d9dF6d9dG6d9dH6d9dI6d9dJ6d9dK6d9dL6d9dM6d9dN6d9dO6Z?e<e?de#dPZ@dQZAedRZBeidSZCe#dTZDe#dUZEdVZFdWZGdXZHdYZIeidZZJeid[ZKd\e0iLe0iMd]ZNd^ZOe0iMd_ZPd`ZQdaZRdbZSe#e)dcZTddZdeZUeVdfjoddkWZWeWiXd9ZYyeWiXdgZZWne[j o e#ZZnXddk\Z\e7e]eYdhZ^eZ_eZoeeZZZeZe^ne^i`e_eWiaibe_icndS(iiN(tStringIO(t TreeBuilder(tXMLTreeBuilder(tComment(tProcessingInstruction(tQName(t_raise_serialization_error(t_namespace_map(tfixtag(tparse(t ElementPathcCst|to |i}nti|ddd\}}|i|}|djoeti|}|djodt|}n|||<|djo d}qd||f}nd}d||f|fS(Nit}sns%dtxmlsxmlns:%ss%s:%s( t isinstanceRttexttstringtsplittgettNoneRtlen(ttagt namespacest namespace_uritprefixtxmlns((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyR"s      (t HTMLParsertptlittrtthttdtheadtbodytimgthrtmetatlinktbrsu"[\u0080-\uffff]"cCs%tth}||_||_|S(N(t_MeldElementInterfacetReplaceRt structure(RR(telement((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyR'?s  tIOcBs,eZdZdZdZdZRS(cCs d|_dS(Nt(tdata(tself((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyt__init__FscCs|i|7_dS(N(R,(R-R,((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pytwriteIscCs|iS(N(R,(R-((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pytgetvalueLscCs d|_dS(NR+(R,(R-((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pytclearOs(t__name__t __module__R.R/R0R1(((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyR*Es   tPyHelpercBsMeZddZddZdZddZddZedZ RS(cCsH|i|}x2|D]*}|iit}||jo|SqW|S(N(t getiteratortattribRt_MELD_ID(R-tnodetnametdefaulttiteratorR)tval((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pytfindmeldSs  cCst|i|ii}|i|_|i|_|i|_|dj o|ii |||_ nx!|iD]}|i ||qsW|S(N( R&RR6tcopyRttailR(Rt _childrentappendtparenttclone(R-R8RBR)tchild((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyRC[s      cCsg}x|D]|}t|i|ii}||_|i|_|i|_|i|_|io|i |i|n|i |q W||_dS(N( R&RR6R>RBRR?R(R@t_bfcloneRA(R-tnodesRBtLR8R)((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyREjs     cCst|i|ii}|i|_|i|_|i|_||_|dj o|i i |n|i o|i |i |n|S(N( R&RR6R>RR?R(RBRR@RARE(R-R8RBR)((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pytbfclonews      cCs|g}|djo d}n|djp|i|jo|i|nx*|iD]}|i|i||qUW|S(Nt*(RRRAR@textendR5(R-R8RRFR)((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyR5s   cCsCd|_t||}||_||_||_|g|_dS(N(RRR'RBR(R@(R-R8RR(t replacenode((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pytcontents     N( R2R3RR=RCRERHR5tFalseRL(((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyR4Rs    t MELD3_PYIMPLs#http://www.plope.com/software/meld3s{%s}tids%s%ssmeld:%sshttp://www.w3.org/1999/xhtmltdoctypecBs eZd Zd Zd Zd ZRS(tHTMLs-//W3C//DTD HTML 4.01//ENs%http://www.w3.org/TR/html4/strict.dtds&-//W3C//DTD HTML 4.01 Transitional//ENs$http://www.w3.org/TR/html4/loose.dtdthtmls -//W3C//DTD XHTML 1.0 Strict//ENs1http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtds&-//W3C//DTD XHTML 1.0 Transitional//ENs7http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd(RQs-//W3C//DTD HTML 4.01//ENs%http://www.w3.org/TR/html4/strict.dtd(RQs&-//W3C//DTD HTML 4.01 Transitional//ENs$http://www.w3.org/TR/html4/loose.dtd(shtmls -//W3C//DTD XHTML 1.0 Strict//ENs1http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd(shtmls&-//W3C//DTD XHTML 1.0 Transitional//ENs7http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd(R2R3t html_strictRRt xhtml_stricttxhtml(((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyRPsR&cBsBeZd.Zd.Zd.Zd.Zd.ZegZdZ dZ dZ dZ dZ dZdZd.dZdZd Zd.d Zd Zd Zd ZdZdZdZdZdZdZdZdZdZdZ dZ!dZ"d.dZ#dZ$d.dZ%d.dZ&e'dZ(e'dZ)d Z*d.d.e'e+e'd!Z,d.d.e'e+e'd"Z-d.e.i/e'd#Z0d.e.i/e'd$Z1d.e.i2e'e'e'd%Z3d.e.i2e'e'e'd&Z4d.d'Z5d(Z6d)Z7d.d*Z8d+Z9d,Z:d-Z;RS(/cCs||_||_g|_dS(N(RR6R@(R-RR6((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyR.s  cCsd|it|fS(Ns(RRO(R-((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyt__repr__scCs t|iS(N(RR@(R-((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyt__len__scCs |i|S(N(R@(R-tindex((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyt __getitem__scCs|i||!S(N(R@(R-tstarttstop((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyt __getslice__scCs|iS(N(R@(R-((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyt getchildrenscCsti||S(N(R tfind(R-tpath((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyR^scCsti|||S(N(R tfindtext(R-R_R:((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyR`scCsti||S(N(R tfindall(R-R_((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyRascCs*|iig|_d|_|_dS(N(R6R1R@RRR?(R-((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyR1s  cCs|ii||S(N(R6R(R-tkeyR:((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyRscCs||i||i|}||} t| | p| i| qFqqWh| d6| d6| d6}t| }t| }t| }h|d6|d6|d6}h|d6|d6S(s^ Compute the meld element differences from this node (the source) to 'other' (the target). Return a dictionary of sequences in the form {'unreduced: {'added':[], 'removed':[], 'moved':[]}, 'reduced': {'added':[], 'removed':[], 'moved':[]},} taddedtremovedtmovedt unreducedtreduced(RtmeldidRARXt sharedlineaget diffreduce(R-Rwt srcelementst tgtelementst_[1]txtsrcidst_[2]ttgtidsRt srcelementRt tgtelementRtsrcidRRt moved_reducedt added_reducedtremoved_reducedR((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pytdiffmelds>  ''        cCs|iitS(N(R6RR7(R-((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyRscCs;g}|}x(|dj o|i||i}qW|S(N(RRARB(R-RGRB((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pytlineages  N(<R2R3RRBR6RR?R(R'R.RVRWRYR\R]R^R`RaR1RRdReRfR5RjRmRARnRpRrRsRuRxRvRR=RRRRMRRLRRRRRPRRRRRURRRCRRRRRR(((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyR&st                                           , cCs tdtS(Ntelement_factory(RR&(((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pytMeldTreeBuilderst MeldParsercBsAeZdZdddZdZdZdZdZRS(s+ A parser based on Fredrik's PIParser at http://effbot.org/zone/element-pi.htm. It blithely ignores the case of a comment existing outside the root element and ignores processing instructions entirely. We need to validate that there are no repeated meld id's in the source as well icCs/ti||||i|i_h|_dS(N(RR.thandle_commentt_parsertCommentHandlertmeldids(R-RRttarget((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyR.scCs7|iith|ii||iitdS(N(t_targetRZRR,tend(R-R,((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyRscCstx^|D]V}d|tjo?||}|ii|otd|nd|i|sD            cCs`|tjodS|ii}||jo|tjo|i|n|ii|dS(N(RRRRRRR(R-Rtlasttag((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyRds  cCs|d djot|dd}n t|}d|jo djno|iit|n|iit|dS(NiRiii(tintRR,tchrtunichr(R-tchar((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pythandle_charrefls  cCstii|}|ot|djot|}nt|dd!}d|jo djno|iit|q|iit |n|i |dS(Niiiii( thtmlentitydefst entitydefsRRtordRRR,RRtunknown_entityref(R-R9tentity((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pythandle_entityrefvscCsPt|tdo&t|ot||id}n|ii|dS(NR+tignore(R R}t is_not_asciitunicodeRRR,(R-R,((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyt handle_datas#cCsdS(N((R-R9((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyRscCs7|iith|ii||iitdS(N(RRZRR,R(R-R,((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyRsN( R2R3RRR.RRRRRRRR(((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyR+s  &    cCsSt|d|i}|i}x(|D] }x|D]}||_q8Wq+W|S(Ntparser(tet_parsetgetrootR5RB(tsourceRtrootR;Rtc((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pytdo_parses cCs%t}td|}t||S(s Parse source (a filelike object) into an element tree. If html is true, use a parser that can resolve somewhat ambiguous HTML into XHTML. Otherwise use a 'normal' parser only.R(RRR (R RR((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyt parse_xmls cCs%t}t||}t||S(N(RRR (R RRR((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyt parse_htmls cCst|}t|S(N(RR(RR ((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pytparse_xmlstrings cCst|}t||S(N(RR(RRR ((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pytparse_htmlstrings s[&"<]s[&<]cCs5|i}x"|D]}||||iiRs<%st s %s="%s"t>s [...] siRt|io||ii|q|t|i|n|o#|t t jo|t }qn|i o|i i }ng}g}yF|d djo1t ||\}} | o|i| qYnWntj ot|nX|d|i||p|o,|ix|D]\} } y| d djoP|p| tjowqnt | |\} } | o|i| q n|p| djowq?nWntj ot| nX|d| i|t| |fqWx>|D]2\} } |d| i|t| |fqWn|ip |ioz|d |io|t|i|nx*|iD]} t|| ||||qW|d |i|d n |d x|D]\} } || =qjW|io|t|i|nd S( s Write XML to a file sutf-8s siRR9s xmlns:melds %s="%s"R*sN(RRRR,RRR'R(R-R.R/R6RfRRAR0RR1R7t_escape_attribR@RR?( R/R8RRRRURRfR7RR{Rtn((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyRs~                     s&(?!([#\w]*;))c Csyg|o4y|i|}Wq>tj ot|SXntid|}|idd}|SWn#ttfj ot|nXdS(Ns&R9s<( R-t UnicodeErrort_encode_entityt nonentity_retsubRR0tAttributeErrorR(RR((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyR,sc Csyy|o4y|i|}Wq>tj ot|SXntid|}|idd}|idd}|SWn#ttfj ot|nXdS(Ns&R9s<t"s"( R-R=R>R?R@RR0RAR(RR((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyR;scCs(tid|}|idd}|S(Ns&R9s<(R?R@R(R((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyR:scCs:tid|}|idd}|idd}|S(Ns&R9s<RBs"(R?R@R(R((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyt_escape_attrib_noencodingscCs'|p|dn|d|dS(Ns s$ ((R/R((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyRscCsZy|\}}}Wn)ttfj otd|inX|d|||fdS(NsQdoctype must be supplied as a 3-tuple in the form (name, pubid, system) e.g. '%s's (RR0RU(R/RPR9tpubidtsystem((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyRs s <\?xml .*?\?>s <[^/?!]?\w+sc Csyti|}d|}|dj oG|id\}}|| }|||!}||}||||S||SdS(Nsi(t xml_decl_retsearchRtspan( R,RPtmatcht dt_stringRZRtbeforeRtafter((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pytinsert_doctype s     cCspti|}|dj oP|id\}}|| }|||!dt}||}|||}n|S(Nis xmlns:meld="%s"(t begin_tag_reRGRRHt _MELD_NS_URL(R,RIRZRRKRRL((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pytinsert_meld_ns_decls   cCsS|iddjot||}n|iddjot|}n|S(Ns \}\}}|idi||idi|q^WdS(NiiRttd1ttd2(RRAtstrR=RRL(R tvaluesRRoRR9tdesc((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pytsample_mutatorjs#t__main__itr(dRtostreRRRRtelementtree.ElementTreeRRRRRRRRR RR t ImportErrortxml.etree.ElementTreeRRRtcompiletevalRGRRMR'R*R4tpyhelpertcmeld3tchelperRtgetenvRgROt _MELD_PREFIXt _MELD_LOCALR7Rt _XHTML_NS_URLR/RR.t_markerRPR&RRRR RRRRtattrib_needs_escapingR+RR4R3R2RRRR?R,R;R:RCRRRFRNRRRURMRPRQRRRYRZRjR2tsystargvtfilenametmutatort IndexErrorttimeitRR tioRtstdoutR/R0(((s1/usr/lib64/python2.6/site-packages/meld3/meld3.pyts        C        = 5g      &#   c ] E