mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +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
|
|
@ -2131,7 +2131,7 @@ raw_unicode_escape(PyObject *obj)
|
|||
Py_UCS4 ch = PyUnicode_READ(kind, data, i);
|
||||
/* Map 32-bit characters to '\Uxxxxxxxx' */
|
||||
if (ch >= 0x10000) {
|
||||
/* -1: substract 1 preallocated byte */
|
||||
/* -1: subtract 1 preallocated byte */
|
||||
p = _PyBytesWriter_Prepare(&writer, p, 10-1);
|
||||
if (p == NULL)
|
||||
goto error;
|
||||
|
|
@ -2149,7 +2149,7 @@ raw_unicode_escape(PyObject *obj)
|
|||
}
|
||||
/* Map 16-bit characters, '\\' and '\n' to '\uxxxx' */
|
||||
else if (ch >= 256 || ch == '\\' || ch == '\n') {
|
||||
/* -1: substract 1 preallocated byte */
|
||||
/* -1: subtract 1 preallocated byte */
|
||||
p = _PyBytesWriter_Prepare(&writer, p, 6-1);
|
||||
if (p == NULL)
|
||||
goto error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue