Skip to content

Commit aae2a73

Browse files
committed
Fix comment
1 parent 5de21c7 commit aae2a73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

git/compat.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ def safe_decode(s):
5656
return s
5757
elif isinstance(s, six.binary_type):
5858
if PRE_PY27:
59-
return s.decode(defenc) # we're screwed
59+
# Python 2.6 does not support the `errors` argument, so we cannot
60+
# control the replacement of unsafe chars in it.
61+
return s.decode(defenc)
6062
else:
6163
return s.decode(defenc, errors='replace')
6264
raise TypeError('Expected bytes or text, but got %r' % (s,))

0 commit comments

Comments
 (0)