summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/root/package.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/root/package.py b/var/spack/repos/builtin/packages/root/package.py
index 7270405ddc..1dfdcb0982 100644
--- a/var/spack/repos/builtin/packages/root/package.py
+++ b/var/spack/repos/builtin/packages/root/package.py
@@ -6,7 +6,6 @@
from spack import *
import sys
-import types
class Root(CMakePackage):
@@ -450,7 +449,7 @@ class Root(CMakePackage):
def _process_opt(opt_name, cond_or_variant=None):
val = cond_or_variant if \
- isinstance(cond_or_variant, types.BooleanType) else \
+ isinstance(cond_or_variant, bool) else \
('+{variant}'.format(variant=cond_or_variant or opt_name)
in self.spec)
return '-D{opt}:BOOL={val}'.format(opt=opt_name, val='ON' if