From 98f6995bdcbd10ea0387d0c55cb6351b81a857fd Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 8 Apr 2015 10:13:50 +0200 Subject: fix(index): _store_path() now closes it's stream This should prevent a resource warning given in py3 Fixes #263 --- git/index/base.py | 1 + 1 file changed, 1 insertion(+) (limited to 'git/index/base.py') diff --git a/git/index/base.py b/git/index/base.py index 0553f418..10de3358 100644 --- a/git/index/base.py +++ b/git/index/base.py @@ -579,6 +579,7 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable): fprogress(filepath, False, filepath) istream = self.repo.odb.store(IStream(Blob.type, st.st_size, stream)) fprogress(filepath, True, filepath) + stream.close() return BaseIndexEntry((stat_mode_to_index_mode(st.st_mode), istream.binsha, 0, to_native_path_linux(filepath))) -- cgit v1.2.3