Re: [Tutor] difflib - restoring from a unified diff?

2006-10-01 Thread Kent Johnson
Liam Clarke wrote: > Hi all, > > I'm writing a wiki at the moment, and I want to store unified diffs to > allow easy reverting between versions of a document. It appears that > difflib.restore() can only generate original text from diffs returned > from ndiff() or compare() which store the full

[Tutor] difflib - restoring from a unified diff?

2006-10-01 Thread Liam Clarke
Hi all, I'm writing a wiki at the moment, and I want to store unified diffs to allow easy reverting between versions of a document. It appears that difflib.restore() can only generate original text from diffs returned from ndiff() or compare() which store the full text of both versions. As thi