File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -3029,17 +3029,15 @@ UnicodeEncodeError_str(PyObject *self)
3029
3029
encoding_str ,
3030
3030
(int )badchar ,
3031
3031
start ,
3032
- reason_str
3033
- );
3032
+ reason_str );
3034
3033
}
3035
3034
else {
3036
3035
result = PyUnicode_FromFormat (
3037
3036
"'%U' codec can't encode characters in position %zd-%zd: %U" ,
3038
3037
encoding_str ,
3039
3038
start ,
3040
3039
end - 1 ,
3041
- reason_str
3042
- );
3040
+ reason_str );
3043
3041
}
3044
3042
done :
3045
3043
Py_XDECREF (reason_str );
@@ -3140,17 +3138,15 @@ UnicodeDecodeError_str(PyObject *self)
3140
3138
encoding_str ,
3141
3139
badbyte ,
3142
3140
start ,
3143
- reason_str
3144
- );
3141
+ reason_str );
3145
3142
}
3146
3143
else {
3147
3144
result = PyUnicode_FromFormat (
3148
3145
"'%U' codec can't decode bytes in position %zd-%zd: %U" ,
3149
3146
encoding_str ,
3150
3147
start ,
3151
3148
end - 1 ,
3152
- reason_str
3153
- );
3149
+ reason_str );
3154
3150
}
3155
3151
done :
3156
3152
Py_XDECREF (reason_str );
@@ -3239,12 +3235,17 @@ UnicodeTranslateError_str(PyObject *self)
3239
3235
fmt = "can't translate character '\\u%04x' in position %zd: %U" ;
3240
3236
else
3241
3237
fmt = "can't translate character '\\U%08x' in position %zd: %U" ;
3242
- result = PyUnicode_FromFormat (fmt , (int )badchar , start , reason_str );
3238
+ result = PyUnicode_FromFormat (
3239
+ fmt ,
3240
+ (int )badchar ,
3241
+ start ,
3242
+ reason_str );
3243
3243
} else {
3244
3244
result = PyUnicode_FromFormat (
3245
3245
"can't translate characters in position %zd-%zd: %U" ,
3246
- start , end - 1 , reason_str
3247
- );
3246
+ start ,
3247
+ end - 1 ,
3248
+ reason_str );
3248
3249
}
3249
3250
done :
3250
3251
Py_XDECREF (reason_str );
You can’t perform that action at this time.
0 commit comments