[diffoscope] 01/01: config: pep8ize
Mattia Rizzolo
mattia at debian.org
Fri Sep 22 15:06:23 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 fe7e2041ee997d81403170f46d8af0e5d3beab5f
Author: Mattia Rizzolo <mattia at debian.org>
Date: Fri Sep 22 15:06:07 2017 +0200
config: pep8ize
Gbp-Dch: Ignore
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
diffoscope/config.py | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/diffoscope/config.py b/diffoscope/config.py
index fbc2acb..db6b3af 100644
--- a/diffoscope/config.py
+++ b/diffoscope/config.py
@@ -68,10 +68,17 @@ class Config(object):
vb = getattr(self, b)
if va < vb:
if isinstance(vb, defaultint):
- logger.warn("%s (%s) < default value of %s (%s), setting latter to %s", a, va, b, vb, va)
+ logger.warn(
+ "%s (%s) < default value of %s (%s), setting latter to %s",
+ a, va, b, vb, va
+ )
setattr(self, b, va)
else:
- raise ValueError("{0} ({1}) cannot be smaller than {2} ({3})".format(a, va, b, vb))
+ raise ValueError(
+ "{0} ({1}) cannot be smaller than {2} ({3})".format(
+ a, va, b, vb
+ )
+ )
def check_constraints(self):
self.check_ge("max_diff_block_lines", "max_page_diff_block_lines")
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list