diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2016-09-04 10:04:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-04 10:04:58 -0500 |
commit | adc155e12648256eea754d1d53e8322e3ac19549 (patch) | |
tree | ffea7974efdc5ec69be5c535dff6847e5509a91a | |
parent | 6c624c5d8d911cd4b0abf587df1a123e0178a32d (diff) | |
parent | f46278b11d5e1a62e52c30002d25bb2f3766f592 (diff) | |
download | numpy-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.py | 2 |
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" |