Skip to content

Commit 77c132b

Browse files
committed
stdlib/tempfile: use os.close
Signed-off-by: Sebastien Binet <[email protected]>
1 parent a271332 commit 77c132b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/tempfile/testdata/test.py

+1-1
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)