Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
stdlib/tempfile: use os.close
Signed-off-by: Sebastien Binet <binet@cern.ch>
  • Loading branch information
sbinet committed May 25, 2022
commit 80944be95fc263ed7845f6a7eafb6a4b1831c1a6
2 changes: 1 addition & 1 deletion stdlib/tempfile/testdata/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
print("INVALID error caught: %s" % e)

def remove(fd, name):
os.fdopen(fd).close()
os.close(fd)
os.remove(name)

## mkstemp
Expand Down