From aae2a7328a4d28077a4b4182b4f36f19c953765b Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Thu, 14 Apr 2016 12:38:53 +0200 Subject: Fix comment --- git/compat.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'git/compat.py') diff --git a/git/compat.py b/git/compat.py index 146bfd4b..1630fcd5 100644 --- a/git/compat.py +++ b/git/compat.py @@ -56,7 +56,9 @@ def safe_decode(s): return s elif isinstance(s, six.binary_type): if PRE_PY27: - return s.decode(defenc) # we're screwed + # Python 2.6 does not support the `errors` argument, so we cannot + # control the replacement of unsafe chars in it. + return s.decode(defenc) else: return s.decode(defenc, errors='replace') raise TypeError('Expected bytes or text, but got %r' % (s,)) -- cgit v1.2.1