8000 stdlib/tempfile: use os.close · go-python/gpython@80944be · GitHub
[go: up one dir, main page]

Skip to content

Commit 80944be

Browse files
committed
stdlib/tempfile: use os.close
Signed-off-by: Sebastien Binet <binet@cern.ch>
1 parent e563b2e commit 80944be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/tempfile/testdata/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
print("INVALID error caught: %s" % e)
6363

6464
def remove(fd, name):
65-
os.fdopen(fd).close()
65+
os.close(fd)
6666
os.remove(name)
6767

6868
## mkstemp

0 commit comments

Comments
 (0)
0