Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Closed
Milestone
Description
Every time I add a file to the index I get the following warning:
home/ryne/projects/GitPython/git/index/base.py:609: ResourceWarning: unclosed file <_io.BufferedReader name='my_file.txt'>
This warning was added in python 3.2 and is triggered by allowing the reference count of an opened file to go to zero -- in this casestream
inIndexFile._store_path
.
Is it safe to callstream.close()
after theistream
object is created?
Metadata
Metadata
Assignees
Labels
No labels