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

Commit7e84122

Browse files
yarikopticByron
authored andcommitted
BF: there is no exc variable, raising NotASurrogateError if that is the right thing todo
1 parent72dddc7 commit7e84122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def replace_surrogate_encode(mystring):
204204
# The following magic comes from Py3.3's Python/codecs.c file:
205205
ifnot0xD800<=code<=0xDCFF:
206206
# Not a surrogate. Fail with the original exception.
207-
raiseexc
207+
raiseNotASurrogateError
208208
# mybytes = [0xe0 | (code >> 12),
209209
# 0x80 | ((code >> 6) & 0x3f),
210210
# 0x80 | (code & 0x3f)]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp