From a26349d8df88107bd59fd69c06114d3b213d0b27 Mon Sep 17 00:00:00 2001 From: "A. Jesse Jiryu Davis" Date: Sun, 20 Jan 2019 23:00:15 -0500 Subject: Python 3 compatibility #717 --- git/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'git/config.py') 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): -- cgit v1.2.1