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‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ def safe_decode(s):
5656
returns
5757
elifisinstance(s, six.binary_type):
5858
ifPRE_PY27:
59-
returns.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+
returns.decode(defenc)
6062
else:
6163
returns.decode(defenc, errors='replace')
6264
raiseTypeError('Expected bytes or text, but got %r'% (s,))

0 commit comments

Comments
(0)