Re: Restore a unified diff

2005-01-05 Thread Tim Peters
[Nick Allen] >>> 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? [Tim Peters] >> That's in general impossible, since unified diffs

Re: Restore a unified diff

2005-01-05 Thread Mike Meyer
Tim Peters <[EMAIL PROTECTED]> writes: > [Nick Allen] >> 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? > > That's in general impossibl

Re: Restore a unified diff

2005-01-04 Thread Tim Peters
[Nick Allen] > After using ndiff from difflib, the function restore > would return the sequence that generated the delta. It can actually reproduce either sequence from which the delta was generated. But this is really trivial: ndiff was intended to produce diff output for humans to read, and in

Restore a unified diff

2005-01-04 Thread Nick Allen
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 gener