PEP 7 style for if/else in C

Add also a newline for readability in normalize_encoding().
This commit is contained in:
Victor Stinner 2016-09-02 12:12:23 +02:00
parent 65a5a47d79
commit 1a05d6c04d
3 changed files with 35 additions and 17 deletions

View file

@ -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;