changeset 35 | 9197c26a414b |
parent 0 | 9117c6561b0b |
child 64 | b3e2ddff0159 |
--- a/mercurial/mdiff.py Sat May 07 11:37:28 2005 -0800 +++ b/mercurial/mdiff.py Sat May 07 16:10:50 2005 -0800 @@ -3,9 +3,10 @@ from cStringIO import StringIO def unidiff(a, b, fn): + if not a and not b: return "" a = a.splitlines(1) b = b.splitlines(1) - l = difflib.unified_diff(a, b, fn, fn) + l = list(difflib.unified_diff(a, b, fn, fn)) return "".join(l) def textdiff(a, b):