summaryrefslogtreecommitdiff
path: root/Objects/stringlib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2016-08-30 10:47:49 -0700
committerRaymond Hettinger <python@rcn.com>2016-08-30 10:47:49 -0700
commit15f44ab043b37c064d6891c7864205fed9fb0dd1 (patch)
tree726736587da36fbfebc1dfb12c4d9c14e6bf9a61 /Objects/stringlib
parent613debcf0a0409b49ad4e1ee63dfc73119029755 (diff)
downloadcpython-git-15f44ab043b37c064d6891c7864205fed9fb0dd1.tar.gz
Issue #27895: Spelling fixes (Contributed by Ville Skyttä).
Diffstat (limited to 'Objects/stringlib')
-rw-r--r--Objects/stringlib/codecs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/stringlib/codecs.h b/Objects/stringlib/codecs.h
index 2846d7e846..749e7652fe 100644
--- a/Objects/stringlib/codecs.h
+++ b/Objects/stringlib/codecs.h
@@ -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)) {