summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoralalazo <massimiliano.culpo@googlemail.com>2016-05-10 19:20:26 +0200
committeralalazo <massimiliano.culpo@googlemail.com>2016-05-10 19:20:26 +0200
commit7d74e209f365ba135acd9dfe738737bcf37d4b79 (patch)
tree1fa8544164e0431690deeba451b94deb36b2beaa /lib
parent3f20014f335f50e6bac8f8ced7a36fae00537c61 (diff)
downloadspack-7d74e209f365ba135acd9dfe738737bcf37d4b79.tar.gz
spack-7d74e209f365ba135acd9dfe738737bcf37d4b79.tar.bz2
spack-7d74e209f365ba135acd9dfe738737bcf37d4b79.tar.xz
spack-7d74e209f365ba135acd9dfe738737bcf37d4b79.zip
qa : this should still fail due to F821
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/architecture.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/spack/spack/architecture.py b/lib/spack/spack/architecture.py
index eec7636d00..62c25c8003 100644
--- a/lib/spack/spack/architecture.py
+++ b/lib/spack/spack/architecture.py
@@ -34,15 +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():
@@ -70,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: