Restore a unified diff

Nick Allen allen at
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 Allen <allen at>

More information about the Python-list mailing list