[diffoscope] 06/10: fix pep8 E711

Mattia Rizzolo mattia at debian.org
Sat Sep 9 22:39:52 CEST 2017


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

mattia pushed a commit to branch master
in repository diffoscope.

commit e61a1b2d59afbd21a06472a8f64358512df3e6f2
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Sat Sep 9 22:26:47 2017 +0200

    fix pep8 E711
    
    Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
 diffoscope/diff.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/diffoscope/diff.py b/diffoscope/diff.py
index 188302f..3b934f4 100644
--- a/diffoscope/diff.py
+++ b/diffoscope/diff.py
@@ -432,9 +432,9 @@ class SideBySideDiff(object):
         elif self.del_cpt != 0 and self.add_cpt != 0:
             l0, l1 = [], []
             for l in self.buf:
-                if l[0] != None:
+                if l[0] is not None:
                     l0.append(l[0])
-                if l[1] != None:
+                if l[1] is not None:
                     l1.append(l[1])
             max_len = (len(l0) > len(l1)) and len(l0) or len(l1)
             for i in range(max_len):

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


More information about the diffoscope mailing list