From 3efacd7aea48c93e0a42c1e83bf3c96e9e50f178 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 7 Jan 2015 09:06:52 +0100 Subject: This should fix flake8 on py3 See #177 --- git/compat.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'git/compat.py') diff --git a/git/compat.py b/git/compat.py index 5c330e5b..1ea2119e 100644 --- a/git/compat.py +++ b/git/compat.py @@ -33,6 +33,7 @@ if PY3: return bytes([n]) def mviter(d): return d.values() + unicode = str else: FileType = file # usually, this is just ascii, which might not enough for our encoding needs @@ -41,6 +42,7 @@ else: defenc = 'utf-8' byte_ord = ord bchr = chr + unicode = unicode def mviter(d): return d.itervalues() -- cgit v1.2.1