File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ v3.4.3
2
+ ======
3
+
4
+ * fix #399: ensure the git file finder closes file descriptor after reading archive
5
+
1
6
v3.4.2
2
7
======
3
8
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def _git_toplevel(path):
28
28
29
29
30
30
def _git_interpret_archive (fd , toplevel ):
31
- with tarfile .open (fileobj = fd , mode = "r|*" ) as tf :
31
+ with fd , tarfile .open (fileobj = fd , mode = "r|*" ) as tf :
32
32
git_files = set ()
33
33
git_dirs = {toplevel }
34
34
for member in tf .getmembers ():
@@ -49,7 +49,7 @@ def _git_ls_files_and_dirs(toplevel):
49
49
try :
50
50
return _git_interpret_archive (proc .stdout , toplevel )
51
51
finally :
52
- # ensure we avoid ressource warnings by cleaning up the pocess
52
+ # ensure we avoid resource warnings by cleaning up the pocess
53
53
proc .wait ()
54
54
except Exception :
55
55
if proc .wait () != 0 :
You can’t perform that action at this time.
0 commit comments