summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Driessen <me@nvie.com>2016-06-14 20:55:41 +0200
committerVincent Driessen <me@nvie.com>2016-06-14 20:55:41 +0200
commit105a8c0fb3fe61b77956c8ebd3216738c78a3dff (patch)
tree7741d866cc8557bc7ac13dedf4876d9586e40d59
parent5c8ff218cb3ee5d3dd9119007ea8478626f6d2ce (diff)
downloadgitpython-105a8c0fb3fe61b77956c8ebd3216738c78a3dff.tar.gz
Python 2.6 compat
-rw-r--r--git/compat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/compat.py b/git/compat.py
index 76509ba6..5b46255c 100644
--- a/git/compat.py
+++ b/git/compat.py
@@ -54,7 +54,7 @@ def safe_decode(s):
if isinstance(s, unicode):
return s
elif isinstance(s, bytes):
- return s.decode(defenc, errors='replace')
+ return s.decode(defenc, 'replace')
raise TypeError('Expected bytes or text, but got %r' % (s,))