[diffoscope] 07/10: fix pep8 E713
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 2a014b5a176e234ef7f52851a9006ddad83a590d
Author: Mattia Rizzolo <mattia at debian.org>
Date: Sat Sep 9 22:27:11 2017 +0200
fix pep8 E713
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
diffoscope/comparators/debian.py | 2 +-
diffoscope/comparators/elf.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/diffoscope/comparators/debian.py b/diffoscope/comparators/debian.py
index 5783eea..2a620ac 100644
--- a/diffoscope/comparators/debian.py
+++ b/diffoscope/comparators/debian.py
@@ -263,7 +263,7 @@ class DotBuildinfoFile(DebControlFile):
# We can parse .buildinfo files just like .dsc
buildinfo = Dsc(f)
- if not 'Checksums-Sha256' in buildinfo:
+ if 'Checksums-Sha256' not in buildinfo:
return False
for d in buildinfo.get('Checksums-Sha256'):
diff --git a/diffoscope/comparators/elf.py b/diffoscope/comparators/elf.py
index c31d8f7..3f42833 100644
--- a/diffoscope/comparators/elf.py
+++ b/diffoscope/comparators/elf.py
@@ -464,7 +464,7 @@ class ElfContainer(Container):
if not hasattr(deb.container, 'dbgsym_build_id_map'):
deb.container.dbgsym_build_id_map = get_build_id_map(deb.container)
- if not build_id in deb.container.dbgsym_build_id_map:
+ if build_id not in deb.container.dbgsym_build_id_map:
logger.debug('Unable to find a matching debug package for Build Id %s', build_id)
return
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list