coding style

This commit is contained in:
Andrew Hamilton 2016-01-09 19:40:41 +00:00
parent 967d1d17f9
commit eb9db73d3d

View file

@ -358,12 +358,11 @@ def python_mccabe(path):
try:
max_score = max(_get_mccabe_line_score(line, python_version)
for line in stdout.splitlines())
except ValueError:
status = Status.success
else:
status = Status.failure if max_score > 10 else Status.success
return status, fill3.Text(_colorize_mccabe(stdout, python_version,
max_score))
except ValueError: # When there are no lines
pass
status = Status.failure if max_score > 10 else Status.success
return status, fill3.Text(
_colorize_mccabe(stdout, python_version, max_score))
python_mccabe.dependencies = {"python-mccabe", "python3-mccabe"}