diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-05-11 02:26:07 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-05-11 02:26:07 -0700 |
commit | 9030541e4bc3a77f90d16969b6fff0afa387847c (patch) | |
tree | 0934a772d3fb381e8108fbc9c22200e26de5c3d6 /lib | |
parent | 98faee1d5c24ddacaeb1bc630ff8c31ba0d74f9b (diff) | |
parent | 78d25ad337e2faaa8cfd589607801acb78aec4d9 (diff) | |
download | spack-9030541e4bc3a77f90d16969b6fff0afa387847c.tar.gz spack-9030541e4bc3a77f90d16969b6fff0afa387847c.tar.bz2 spack-9030541e4bc3a77f90d16969b6fff0afa387847c.tar.xz spack-9030541e4bc3a77f90d16969b6fff0afa387847c.zip |
Merge pull request #929 from epfl-scitas/differentiate_framework_from_packages
QA : make qa checking less painful
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/architecture.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/spack/spack/architecture.py b/lib/spack/spack/architecture.py index 2701fab90c..62c25c8003 100644 --- a/lib/spack/spack/architecture.py +++ b/lib/spack/spack/architecture.py @@ -34,14 +34,14 @@ import spack.error as serr class InvalidSysTypeError(serr.SpackError): def __init__(self, sys_type): - super(InvalidSysTypeError, self).__init__( - "Invalid sys_type value for Spack: " + sys_type) + super(InvalidSysTypeError, + self).__init__("Invalid sys_type value for Spack: " + sys_type) class NoSysTypeError(serr.SpackError): def __init__(self): - super(NoSysTypeError, self).__init__( - "Could not determine sys_type for this machine.") + super(NoSysTypeError, + self).__init__("Could not determine sys_type for this machine.") def get_sys_type_from_spack_globals(): @@ -69,15 +69,15 @@ def get_sys_type_from_platform(): @memoized def sys_type(): """Returns a SysType for the current machine.""" - methods = [get_sys_type_from_spack_globals, - get_sys_type_from_environment, + methods = [get_sys_type_from_spack_globals, get_sys_type_from_environment, get_sys_type_from_platform] # search for a method that doesn't return None sys_type = None for method in methods: sys_type = method() - if sys_type: break + if sys_type: + break # Couldn't determine the sys_type for this machine. if sys_type is None: |