diff options
author | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2019-01-20 23:00:15 -0500 |
---|---|---|
committer | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2019-01-20 23:00:15 -0500 |
commit | a26349d8df88107bd59fd69c06114d3b213d0b27 (patch) | |
tree | 89766212c3b6a40e947c7c308abe0365153a2240 /git/config.py | |
parent | f7bbe6b01c82d9bcb3333b07bae0c9755eecdbbf (diff) | |
download | gitpython-a26349d8df88107bd59fd69c06114d3b213d0b27.tar.gz |
Python 3 compatibility
#717
Diffstat (limited to 'git/config.py')
-rw-r--r-- | git/config.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/git/config.py b/git/config.py index 83718092..e2c055fd 100644 --- a/git/config.py +++ b/git/config.py @@ -523,7 +523,8 @@ class GitConfigParser(with_metaclass(MetaParserBuilder, cp.RawConfigParser, obje rv[k].extend(v) - return rv.items() + # For consistency with items(), return a list, even in Python 3 + return list(rv.items()) @needs_values def write(self): |