Skip to content
Snippets Groups Projects
Commit 5940ec0d authored by Hadrien G's avatar Hadrien G Committed by Adam J. Stewart
Browse files

Remove python2-ism in root package (#14223)

parent af249d3c
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,6 @@
from spack import *
import sys
import types
class Root(CMakePackage):
......@@ -450,7 +449,7 @@ def _process_opts(self, *opt_lists):
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment