From f72477aa5b2f61b22bd6d9cc7567da3fc197d932 Mon Sep 17 00:00:00 2001 From: Keith Mosher Date: Sat, 21 Jun 2014 02:48:58 -0700 Subject: [PATCH] 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 ++++++++++++++++++++---------------- git/test/fixtures/git_config | 5 ++ git/test/test_config.py | 28 ++++++----- 3 files changed, 73 insertions(+), 54 deletions(-) diff --git a/git/config.py b/git/config.py index c66d0cc4d..e2b0356f2 100644 --- a/git/config.py +++ b/git/config.py @@ -131,19 +131,20 @@ class GitConfigParser(cp.RawConfigParser, object): OPTCRE = re.compile( r'\s*(?P