From dc9278fb4432f0244f4d780621d5c1b57a03b720 Mon Sep 17 00:00:00 2001 From: Raphael Boidol Date: Sat, 20 Feb 2016 22:00:59 +0100 Subject: enable config parsers to be used as context managers if used as context managers, the parsers will automatically release their file locks. --- git/repo/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/repo/base.py') 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. -- cgit v1.2.1