[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
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
[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