Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaae2a73

Browse files
committed
Fix comment
1 parent5de21c7 commitaae2a73

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)

[8]ページ先頭

©2009-2025 Movatter.jp