Skip to content

Commit 77e7f19

Browse files
committed
chore: add changelog
1 parent c8a0f48 commit 77e7f19

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

changelog_unreleased/misc/17665.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#### Avoid closing files multiple times (#17665 by @43081j)
2+
3+
When reading a file to infer the interpreter from a shebang, we use the
4+
`n-readlines` library to read the first line in order to get the shebang.
5+
6+
This library closes files when it reaches EOF, and we later try close the same
7+
files again. We now close files only if `n-readlines` did not already close
8+
them.

0 commit comments

Comments
 (0)