diff options
author | Raphael Boidol <raphael.boidol@tngtech.com> | 2016-02-20 22:00:59 +0100 |
---|---|---|
committer | Raphael Boidol <raphael.boidol@tngtech.com> | 2016-02-20 22:09:31 +0100 |
commit | dc9278fb4432f0244f4d780621d5c1b57a03b720 (patch) | |
tree | 56c604bd90d2d39b5849904161aa5e29ed1c2a07 /git/repo/base.py | |
parent | 121f6af3a75e4f48acf31b1af2386cdd5bf91e00 (diff) | |
download | gitpython-dc9278fb4432f0244f4d780621d5c1b57a03b720.tar.gz |
enable config parsers to be used as context managers
if used as context managers, the parsers will automatically release their file locks.
Diffstat (limited to 'git/repo/base.py')
-rw-r--r-- | git/repo/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/repo/base.py b/git/repo/base.py index 9f077fa6..a23e767a 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -403,7 +403,7 @@ class Repo(object): """ :return: GitConfigParser allowing to write values of the specified configuration file level. - Config writers should be retrieved, used to change the configuration ,and written + Config writers should be retrieved, used to change the configuration, and written right away as they will lock the configuration file in question and prevent other's to write it. |