Flake8 fixes in cmd/package-list.py file

This commit is contained in:
Paul Hopkins 2016-07-18 12:52:23 +01:00
parent 2b3ba850b3
commit cc027148eb

View file

@ -34,15 +34,15 @@
def github_url(pkg): def github_url(pkg):
"""Link to a package file on github.""" """Link to a package file on github."""
return ("https://github.com/llnl/spack/blob/master/var/spack/packages/%s/package.py" % url = "https://github.com/llnl/spack/blob/master/var/spack/packages/%s/package.py" # NOQA: ignore=E501
pkg.name) return (url % pkg.name)
def rst_table(elts): def rst_table(elts):
"""Print out a RST-style table.""" """Print out a RST-style table."""
cols = StringIO() cols = StringIO()
ncol, widths = colify(elts, output=cols, tty=True) ncol, widths = colify(elts, output=cols, tty=True)
header = " ".join("=" * (w-1) for w in widths) header = " ".join("=" * (w - 1) for w in widths)
return "%s\n%s%s" % (header, cols.getvalue(), header) return "%s\n%s%s" % (header, cols.getvalue(), header)