summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/build_ext.py
diff options
context:
space:
mode:
authorAdam Ginsburg <adam.g.ginsburg@gmail.com>2013-04-21 12:04:28 -0600
committerAdam Ginsburg <adam.g.ginsburg@gmail.com>2013-04-21 12:04:28 -0600
commit63d9a9b468cc0c15325b1320cf13409b8d2210af (patch)
tree3ad64def4c73511dbfb99559b24a566b05824c8e /numpy/distutils/command/build_ext.py
parent9016aa47a65fc2e3b19c82d01174f591655e517d (diff)
downloadnumpy-63d9a9b468cc0c15325b1320cf13409b8d2210af.tar.gz
reduces excess cleverness from 1/2 to 1/3
Diffstat (limited to 'numpy/distutils/command/build_ext.py')
-rw-r--r--numpy/distutils/command/build_ext.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/command/build_ext.py b/numpy/distutils/command/build_ext.py
index 6cd8f10e4..97bfa1613 100644
--- a/numpy/distutils/command/build_ext.py
+++ b/numpy/distutils/command/build_ext.py
@@ -297,8 +297,8 @@ class build_ext (old_build_ext):
else: # in case ext.language is c++, for instance
fcompiler = self._f90_compiler or self._f77_compiler
if fcompiler is not None:
- fcompiler.extra_f77_compile_args = ext.extra_f77_compile_args or [] if hasattr(ext,'extra_f77_compile_args') else []
- fcompiler.extra_f90_compile_args = ext.extra_f90_compile_args or [] if hasattr(ext,'extra_f90_compile_args') else []
+ fcompiler.extra_f77_compile_args = (ext.extra_f77_compile_args or []) if hasattr(ext,'extra_f77_compile_args') else []
+ fcompiler.extra_f90_compile_args = (ext.extra_f90_compile_args or []) if hasattr(ext,'extra_f90_compile_args') else []
cxx_compiler = self._cxx_compiler
# check for the availability of required compilers