Commit fe7e2041 authored by Mattia Rizzolo's avatar Mattia Rizzolo

config: pep8ize

Gbp-Dch: Ignore
Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 510162b7
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment