mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #27895: Spelling fixes (Contributed by Ville Skyttä).
This commit is contained in:
parent
613debcf0a
commit
15f44ab043
72 changed files with 121 additions and 121 deletions
|
@ -347,7 +347,7 @@ STRINGLIB(utf8_encoder)(PyObject *unicode,
|
|||
break;
|
||||
|
||||
case _Py_ERROR_BACKSLASHREPLACE:
|
||||
/* substract preallocated bytes */
|
||||
/* subtract preallocated bytes */
|
||||
writer.min_size -= max_char_size * (endpos - startpos);
|
||||
p = backslashreplace(&writer, p,
|
||||
unicode, startpos, endpos);
|
||||
|
@ -357,7 +357,7 @@ STRINGLIB(utf8_encoder)(PyObject *unicode,
|
|||
break;
|
||||
|
||||
case _Py_ERROR_XMLCHARREFREPLACE:
|
||||
/* substract preallocated bytes */
|
||||
/* subtract preallocated bytes */
|
||||
writer.min_size -= max_char_size * (endpos - startpos);
|
||||
p = xmlcharrefreplace(&writer, p,
|
||||
unicode, startpos, endpos);
|
||||
|
@ -387,7 +387,7 @@ STRINGLIB(utf8_encoder)(PyObject *unicode,
|
|||
if (!rep)
|
||||
goto error;
|
||||
|
||||
/* substract preallocated bytes */
|
||||
/* subtract preallocated bytes */
|
||||
writer.min_size -= max_char_size;
|
||||
|
||||
if (PyBytes_Check(rep)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue