Skip to content

Commit b1f938c

Browse files
committed
Close subprocess files descriptor
1 parent 0df34c7 commit b1f938c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/setuptools_scm/file_finder_git.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def _git_ls_files_and_dirs(toplevel):
5050
return _git_interpret_archive(proc.stdout, toplevel)
5151
finally:
5252
# ensure we avoid resource warnings by cleaning up the process
53+
proc.stdout.close()
5354
proc.terminate()
5455
except Exception:
5556
if proc.wait() != 0:

0 commit comments

Comments
 (0)