commit | deaf1fc5648e7067ec398fea252db200976984a0 | [log] [tgz] |
---|---|---|
author | Clint Byrum <clint@fewbar.com> | Wed May 10 21:28:31 2017 -0700 |
committer | Clint Byrum <clint@fewbar.com> | Fri May 19 06:45:25 2017 -0700 |
tree | bf005e5dbb1be056562db5be87bcc0118da9e9b5 | |
parent | e5c4afa94cedc63e6f371c981207965f9beadcaf [diff] |
py3 Changes in __del__ for gitpython gitpython in py2 relied upon the behavior of __del__ to release locks on config_writer objects. In py3, because __del__ may happen much later than when an object drops out of scope, we must explicitly release locks either with the .release() method or by using the config writer as a context manager. Change-Id: Ic09eb7af6757eefbb0f8c86cb1bf3e8ca5f007b9