Restore a unified diff

Nick Allen allen at cis.ohio-state.edu
Tue Jan 4 17:37:20 EST 2005


After using ndiff from difflib, the function restore
would return the sequence that generated the delta.  Unfortunately,
restore does not do the same for unified_diff.  I do not see any similar
function that is intended for unified_diff.  Does anyone know how to 
"restore" from a unified diff generated delta?

Thanks for all your help in advance.

Best Regards,
Nick


Nick Allen <allen at cse.ohio-state.edu>



More information about the Python-list mailing list