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)
30293029 encoding_str ,
30303030 (int )badchar ,
30313031 start ,
3032- reason_str
3033- );
3032+ reason_str );
30343033 }
30353034 else {
30363035 result = PyUnicode_FromFormat (
30373036 "'%U' codec can't encode characters in position %zd-%zd: %U" ,
30383037 encoding_str ,
30393038 start ,
30403039 end - 1 ,
3041- reason_str
3042- );
3040+ reason_str );
30433041 }
30443042done :
30453043 Py_XDECREF (reason_str );
@@ -3140,17 +3138,15 @@ UnicodeDecodeError_str(PyObject *self)
31403138 encoding_str ,
31413139 badbyte ,
31423140 start ,
3143- reason_str
3144- );
3141+ reason_str );
31453142 }
31463143 else {
31473144 result = PyUnicode_FromFormat (
31483145 "'%U' codec can't decode bytes in position %zd-%zd: %U" ,
31493146 encoding_str ,
31503147 start ,
31513148 end - 1 ,
3152- reason_str
3153- );
3149+ reason_str );
31543150 }
31553151done :
31563152 Py_XDECREF (reason_str );
@@ -3239,12 +3235,17 @@ UnicodeTranslateError_str(PyObject *self)
32393235 fmt = "can't translate character '\\u%04x' in position %zd: %U" ;
32403236 else
32413237 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 );
32433243 } else {
32443244 result = PyUnicode_FromFormat (
32453245 "can't translate characters in position %zd-%zd: %U" ,
3246- start , end - 1 , reason_str
3247- );
3246+ start ,
3247+ end - 1 ,
3248+ reason_str );
32483249 }
32493250done :
32503251 Py_XDECREF (reason_str );
You can’t perform that action at this time.
0 commit comments