Flake8 fixes in cmd/package-list.py file
This commit is contained in:
parent
2b3ba850b3
commit
cc027148eb
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue