[diffoscope] 02/03: diffoscope.diff: Correct reference to self.buf.

Chris Lamb chris at chris-lamb.co.uk
Fri Sep 8 23:06:59 CEST 2017


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository diffoscope.

commit b1a904a3b0fc77984fba9a82acd08fe472fe06a2
Author: Chris Lamb <lamby at debian.org>
Date:   Fri Sep 8 22:04:46 2017 +0100

    diffoscope.diff: Correct reference to self.buf.
---
 diffoscope/diff.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/diff.py b/diffoscope/diff.py
index 762acde..f5d79fb 100644
--- a/diffoscope/diff.py
+++ b/diffoscope/diff.py
@@ -528,7 +528,7 @@ class SideBySideDiff(object):
                 if self.hunk_size2 == 0:
                     self.buf[-1] = (self.buf[-1][0], self.buf[-1][1] + '\n' + l[2:])
                 else:
-                    self.buf[-1] = (buf[-1][0] + '\n' + l[2:], self.buf[-1][1])
+                    self.buf[-1] = (self.buf[-1][0] + '\n' + l[2:], self.buf[-1][1])
                 continue
 
             if self.hunk_size1 <= 0 and self.hunk_size2 <= 0:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list