From f72477aa5b2f61b22bd6d9cc7567da3fc197d932 Mon Sep 17 00:00:00 2001 From: Keith Mosher Date: Sat, 21 Jun 2014 02:48:58 -0700 Subject: Update the config parser using code from python2.7 Notably this adds support for valueless options ( e.x. the option "required" which can be added to filters which must succeed.) --- git/config.py | 94 +++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 52 insertions(+), 42 deletions(-) (limited to 'git/config.py') diff --git a/git/config.py b/git/config.py index c66d0cc4..e2b0356f 100644 --- a/git/config.py +++ b/git/config.py @@ -131,19 +131,20 @@ class GitConfigParser(cp.RawConfigParser, object): OPTCRE = re.compile( r'\s*(?P