Converting Diff Output to XML?
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Tue Jun 26 21:18:58 EDT 2007
En Tue, 26 Jun 2007 11:43:32 -0300, Debajit Adhikary <debajit at debajit.com>
escribió:
> What would be the best way to convert the regular (unix) diff output into
> XML?
> Are there any libraries at all which might help?
You can use a SequenceMatcher object (see the difflib module
http://docs.python.org/lib/module-difflib.html) and generate the xml file
based on the resulting opcodes.
--
Gabriel Genellina
More information about the Python-list
mailing list