Converting Diff Output to XML?
gagsl-py2 at yahoo.com.ar
Wed Jun 27 03:18:58 CEST 2007
En Tue, 26 Jun 2007 11:43:32 -0300, Debajit Adhikary <debajit at debajit.com>
> What would be the best way to convert the regular (unix) diff output into
> 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.
More information about the Python-list