mirror of https://github.com/python/cpython
Wrap some long lines, use only C89 /* */ comments, and add spaces around
some operators (style guide conformance).
This commit is contained in:
parent
4a2261aee5
commit
bb66a200be
|
@ -1093,20 +1093,21 @@ XML_Encoding * info)
|
|||
int result = 0;
|
||||
int i;
|
||||
|
||||
_u_string=(PyUnicodeObject *) PyUnicode_Decode(template_buffer, 256, name, "replace"); // Yes, supports only 8bit encodings
|
||||
/* Yes, supports only 8bit encodings */
|
||||
_u_string = (PyUnicodeObject *)
|
||||
PyUnicode_Decode(template_buffer, 256, name, "replace");
|
||||
|
||||
if (_u_string==NULL) {
|
||||
if (_u_string == NULL)
|
||||
return result;
|
||||
}
|
||||
|
||||
for (i = 0; i < 256; i++) {
|
||||
Py_UNICODE c = _u_string->str[i] ; // Stupid to access directly, but fast
|
||||
if (c==Py_UNICODE_REPLACEMENT_CHARACTER) {
|
||||
/* Stupid to access directly, but fast */
|
||||
Py_UNICODE c = _u_string->str[i];
|
||||
if (c == Py_UNICODE_REPLACEMENT_CHARACTER)
|
||||
info->map[i] = -1;
|
||||
} else {
|
||||
else
|
||||
info->map[i] = c;
|
||||
}
|
||||
}
|
||||
|
||||
info->data = NULL;
|
||||
info->convert = NULL;
|
||||
|
|
Loading…
Reference in New Issue