mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
PEP 7 style for if/else in C
Add also a newline for readability in normalize_encoding().
This commit is contained in:
parent
65a5a47d79
commit
1a05d6c04d
3 changed files with 35 additions and 17 deletions
|
@ -314,8 +314,9 @@ STRINGLIB(utf8_encoder)(PyObject *unicode,
|
|||
else if (Py_UNICODE_IS_SURROGATE(ch)) {
|
||||
Py_ssize_t startpos, endpos, newpos;
|
||||
Py_ssize_t k;
|
||||
if (error_handler == _Py_ERROR_UNKNOWN)
|
||||
if (error_handler == _Py_ERROR_UNKNOWN) {
|
||||
error_handler = get_error_handler(errors);
|
||||
}
|
||||
|
||||
startpos = i-1;
|
||||
endpos = startpos+1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue