Skip to content

Commit 77c132b

Browse files
committedMay 25, 2022
stdlib/tempfile: use os.close
Signed-off-by: Sebastien Binet <binet@cern.ch>
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

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)