Skip to content

Commit 105a8c0

Browse files
committed
Python 2.6 compat
1 parent 5c8ff21 commit 105a8c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/compat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def safe_decode(s):
5454
if isinstance(s, unicode):
5555
return s
5656
elif isinstance(s, bytes):
57-
return s.decode(defenc, errors='replace')
57+
return s.decode(defenc, 'replace')
5858
raise TypeError('Expected bytes or text, but got %r' % (s,))
5959

6060

0 commit comments

Comments
 (0)