Skip to content

Commit

Permalink
flake8 : fixed all issues?
Browse files Browse the repository at this point in the history
  • Loading branch information
alalazo committed May 10, 2016
1 parent c3f3f26 commit 71e49e2
Show file tree
Hide file tree
Showing 6 changed files with 330 additions and 254 deletions.
16 changes: 10 additions & 6 deletions lib/spack/spack/cmd/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,21 @@
from spack.modules import module_types
from spack.util.string import *

description ="Manipulate modules and dotkits."
description = "Manipulate modules and dotkits."


def setup_parser(subparser):
sp = subparser.add_subparsers(metavar='SUBCOMMAND', dest='module_command')

refresh_parser = sp.add_parser('refresh', help='Regenerate all module files.')
sp.add_parser('refresh', help='Regenerate all module files.')

find_parser = sp.add_parser('find', help='Find module files for packages.')
find_parser.add_argument(
'module_type', help="Type of module to find file for. [" + '|'.join(module_types) + "]")
find_parser.add_argument('spec', nargs='+', help='spec to find a module file for.')
find_parser.add_argument('module_type',
help="Type of module to find file for. [" +
'|'.join(module_types) + "]")
find_parser.add_argument('spec',
nargs='+',
help='spec to find a module file for.')


def module_find(mtype, spec_array):
Expand All @@ -53,7 +56,8 @@ def module_find(mtype, spec_array):
should type to use that package's module.
"""
if mtype not in module_types:
tty.die("Invalid module type: '%s'. Options are %s" % (mtype, comma_or(module_types)))
tty.die("Invalid module type: '%s'. Options are %s" %
(mtype, comma_or(module_types)))

specs = spack.cmd.parse_specs(spec_array)
if len(specs) > 1:
Expand Down
Loading

0 comments on commit 71e49e2

Please sign in to comment.