[diffoscope] 01/02: Further cosmetic fixups.

Chris Lamb chris at chris-lamb.co.uk
Sat Sep 9 22:14:57 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 c61dd5ef5c3bcdc6df5a9688e9e10bab9800ce0c
Author: Chris Lamb <lamby at debian.org>
Date:   Sat Sep 9 21:08:12 2017 +0100

    Further cosmetic fixups.
---
 diffoscope/diff.py                 | 2 +-
 diffoscope/presenters/html/html.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/diffoscope/diff.py b/diffoscope/diff.py
index 9a27c4c..ed61a28 100644
--- a/diffoscope/diff.py
+++ b/diffoscope/diff.py
@@ -514,7 +514,7 @@ class SideBySideDiff(object):
             m = re.match(r"@@ -(\d+),?(\d*) \+(\d+),?(\d*)", l)
             if m:
                 yield from self.empty_buffer()
-                hunk_data = map(lambda x: x=="" and 1 or int(x), m.groups())
+                hunk_data = map(lambda x: x == "" and 1 or int(x), m.groups())
                 self.hunk_off1, self.hunk_size1, self.hunk_off2, self.hunk_size2 = hunk_data
                 self.line1, self.line2 = self.hunk_off1, self.hunk_off2
                 yield "H", (self.hunk_off1, self.hunk_size1, self.hunk_off2, self.hunk_size2)
diff --git a/diffoscope/presenters/html/html.py b/diffoscope/presenters/html/html.py
index 224fa97..4903b6b 100644
--- a/diffoscope/presenters/html/html.py
+++ b/diffoscope/presenters/html/html.py
@@ -121,7 +121,7 @@ def convert(s, ponct=0, tag=''):
 
         # special highlighted chars
         elif c == "\t" and ponct == 1:
-            n = TABSIZE-(i % TABSIZE)
+            n = TABSIZE - (i % TABSIZE)
             if n == 0:
                 n = TABSIZE
             t.write('<span class="diffponct">\xbb</span>'+'\xa0'*(n-1))

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


More information about the diffoscope mailing list