summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2016-09-04 10:04:58 -0500
committerGitHub <noreply@github.com>2016-09-04 10:04:58 -0500
commitadc155e12648256eea754d1d53e8322e3ac19549 (patch)
treeffea7974efdc5ec69be5c535dff6847e5509a91a
parent6c624c5d8d911cd4b0abf587df1a123e0178a32d (diff)
parentf46278b11d5e1a62e52c30002d25bb2f3766f592 (diff)
downloadnumpy-adc155e12648256eea754d1d53e8322e3ac19549.tar.gz
Merge pull request #8014 from seberg/issue-8013
BUG: Fix fid.close() to use os.close(fid)
-rw-r--r--numpy/distutils/fcompiler/gnu.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/fcompiler/gnu.py b/numpy/distutils/fcompiler/gnu.py
index fd49db492..1de658afb 100644
--- a/numpy/distutils/fcompiler/gnu.py
+++ b/numpy/distutils/fcompiler/gnu.py
@@ -364,7 +364,7 @@ def _can_target(cmd, arch):
"""Return true if the architecture supports the -arch flag"""
newcmd = cmd[:]
fid, filename = tempfile.mkstemp(suffix=".f")
- fid.close()
+ os.close(fid)
try:
d = os.path.dirname(filename)
output = os.path.splitext(filename)[0] + ".o"