diff options
author | Tom Scogland <scogland1@llnl.gov> | 2016-06-17 13:32:28 -0700 |
---|---|---|
committer | Tom Scogland <scogland1@llnl.gov> | 2016-06-17 13:32:28 -0700 |
commit | 0743ef4d0ba6632992fee3657f0d89200d4e481b (patch) | |
tree | b1ffcc33b5df453c8466c4fa3ea117dc2c35e03c | |
parent | a4ac99877a512249fa7d126f48716d590cfa80a9 (diff) | |
download | spack-0743ef4d0ba6632992fee3657f0d89200d4e481b.tar.gz spack-0743ef4d0ba6632992fee3657f0d89200d4e481b.tar.bz2 spack-0743ef4d0ba6632992fee3657f0d89200d4e481b.tar.xz spack-0743ef4d0ba6632992fee3657f0d89200d4e481b.zip |
fixing flake8 issues
-rw-r--r-- | lib/spack/spack/cmd/list.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/spack/spack/cmd/list.py b/lib/spack/spack/cmd/list.py index 5406283b05..d1c19b45c6 100644 --- a/lib/spack/spack/cmd/list.py +++ b/lib/spack/spack/cmd/list.py @@ -28,9 +28,11 @@ import argparse from llnl.util.tty.colify import colify import spack -import fnmatch, re +import fnmatch +import re + +description = "List available spack packages" -description ="List available spack packages" def setup_parser(subparser): subparser.add_argument( @@ -76,10 +78,10 @@ def list(parser, args): pkgs = [p for p in pkgs if any(match(p, f) for f in res)] # sort before displaying. - sorted_packages = sorted(pkgs, key=lambda s:s.lower()) + sorted_packages = sorted(pkgs, key=lambda s: s.lower()) # Print all the package names in columns - indent=0 + indent = 0 if sys.stdout.isatty(): tty.msg("%d packages." % len(sorted_packages)) colify(sorted_packages, indent=indent) |