[diffoscope] 05/10: fix pep8 E701
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 c8eb77e919c89216d14ffa1d74ee8972476bd508
Author: Mattia Rizzolo <mattia at debian.org>
Date: Sat Sep 9 22:14:28 2017 +0200
fix pep8 E701
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
diffoscope/comparators/zip.py | 6 ++++--
diffoscope/presenters/html/html.py | 9 ++++++---
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/diffoscope/comparators/zip.py b/diffoscope/comparators/zip.py
index 0a49cd2..77da401 100644
--- a/diffoscope/comparators/zip.py
+++ b/diffoscope/comparators/zip.py
@@ -122,10 +122,12 @@ class MozillaZipCommandMixin(object):
return 0
-class MozillaZipinfo(MozillaZipCommandMixin, Zipinfo): pass
+class MozillaZipinfo(MozillaZipCommandMixin, Zipinfo):
+ pass
-class MozillaZipinfoVerbose(MozillaZipCommandMixin, ZipinfoVerbose): pass
+class MozillaZipinfoVerbose(MozillaZipCommandMixin, ZipinfoVerbose):
+ pass
class MozillaZipContainer(ZipContainer):
diff --git a/diffoscope/presenters/html/html.py b/diffoscope/presenters/html/html.py
index c17817c..9c277e5 100644
--- a/diffoscope/presenters/html/html.py
+++ b/diffoscope/presenters/html/html.py
@@ -219,7 +219,8 @@ def output_node(ctx, difference, path, indentstr, indentnum):
ud_cont = ud_cont.send
udiff = udiff.pformatl(PartialString.of(ud_cont))
else:
- for _ in ud_cont: pass # exhaust the iterator, avoids GeneratorExit
+ for _ in ud_cont:
+ pass # exhaust the iterator, avoids GeneratorExit
ud_cont = None
# PartialString for this node
@@ -353,7 +354,8 @@ class HTMLSideBySidePresenter(object):
return self.spl_print_ctrl and self.spl_print_ctrl[1] and self.spl_current_page > 0
def spl_print_exit(self, *exc_info):
- if not self.spl_had_entered_child(): return False
+ if not self.spl_had_entered_child():
+ return False
self.spl_print_func(output_footer())
_exit, _ = self.spl_print_ctrl
self.spl_print_func = None
@@ -487,7 +489,8 @@ class HTMLSideBySidePresenter(object):
except:
import traceback
traceback.print_exc()
- if self.spl_print_exit(*sys.exc_info()) is False: raise
+ if self.spl_print_exit(*sys.exc_info()) is False:
+ raise
else:
self.spl_print_exit(None, None, None)
finally:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list