From b54abbeabd82eafa0c45e5ec91c9e30df647bfd8 Mon Sep 17 00:00:00 2001 From: Nick <nicholas.curtis@uconn.edu> Date: Sat, 10 Feb 2018 16:06:08 -0500 Subject: [PATCH] properly guard if statment --- loopy/target/c/c_execution.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/loopy/target/c/c_execution.py b/loopy/target/c/c_execution.py index 2980eaa10..3634cc71a 100644 --- a/loopy/target/c/c_execution.py +++ b/loopy/target/c/c_execution.py @@ -249,9 +249,8 @@ class CCompiler(object): 'defines': defines} # filter empty and those equal to toolchain defaults diff = dict((k, v) for k, v in six.iteritems(diff) - if v and - not hasattr(self.toolchain, k) or - getattr(self.toolchain, k) != v) + if v and (not hasattr(self.toolchain, k) or + getattr(self.toolchain, k) != v)) self.toolchain = self.toolchain.copy(**diff) self.tempdir = tempfile.mkdtemp(prefix="tmp_loopy") self.source_suffix = source_suffix -- GitLab