qa : flake8 issues

This commit is contained in:
alalazo 2016-10-21 22:15:29 +02:00
parent 04821c7be8
commit fd2b72fd0f

View file

@ -126,7 +126,9 @@ def versions(self):
"""Adds a version() call to the package for each version found.""" """Adds a version() call to the package for each version found."""
max_len = max(len(str(v)) for v, h in self.version_hash_tuples) max_len = max(len(str(v)) for v, h in self.version_hash_tuples)
format = " version(%%-%ds, '%%s')" % (max_len + 2) format = " version(%%-%ds, '%%s')" % (max_len + 2)
return '\n'.join(format % ("'%s'" % v, h) for v, h in self.version_hash_tuples) return '\n'.join(
format % ("'%s'" % v, h) for v, h in self.version_hash_tuples
)
class AutotoolsGuess(DefaultGuess): class AutotoolsGuess(DefaultGuess):