summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Hopkins <paul.hopkins@ligo.org>2016-07-18 12:52:23 +0100
committerPaul Hopkins <paul.hopkins@ligo.org>2016-07-18 12:52:23 +0100
commitcc027148ebdafbc58f3ad86b384c38534357062a (patch)
tree7716e32ac36ee2532ce7356131edcc95aaa5e830 /lib
parent2b3ba850b31af879312bc1e7c8400c2725a5c038 (diff)
downloadspack-cc027148ebdafbc58f3ad86b384c38534357062a.tar.gz
spack-cc027148ebdafbc58f3ad86b384c38534357062a.tar.bz2
spack-cc027148ebdafbc58f3ad86b384c38534357062a.tar.xz
spack-cc027148ebdafbc58f3ad86b384c38534357062a.zip
Flake8 fixes in cmd/package-list.py file
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/package-list.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/spack/cmd/package-list.py b/lib/spack/spack/cmd/package-list.py
index ffb656c468..2d25ebc63e 100644
--- a/lib/spack/spack/cmd/package-list.py
+++ b/lib/spack/spack/cmd/package-list.py
@@ -34,15 +34,15 @@ description = "Print a list of all packages in reStructuredText."
def github_url(pkg):
"""Link to a package file on github."""
- return ("https://github.com/llnl/spack/blob/master/var/spack/packages/%s/package.py" %
- pkg.name)
+ url = "https://github.com/llnl/spack/blob/master/var/spack/packages/%s/package.py" # NOQA: ignore=E501
+ return (url % pkg.name)
def rst_table(elts):
"""Print out a RST-style table."""
cols = StringIO()
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)