We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8a0f48 commit 77e7f19Copy full SHA for 77e7f19
1 file changed
changelog_unreleased/misc/17665.md
@@ -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