[Python-checkins] cpython (2.7): Correct occurance → occurrence; extracted from patch by Georg Brandl
martin.panter
python-checkins at python.org
Thu Sep 8 01:42:49 EDT 2016
https://hg.python.org/cpython/rev/4f1f3d7cf8cb
changeset: 103292:4f1f3d7cf8cb
branch: 2.7
user: Martin Panter <vadmium+py at gmail.com>
date: Thu Sep 08 05:22:16 2016 +0000
summary:
Correct occurance → occurrence; extracted from patch by Georg Brandl
files:
Objects/bytearrayobject.c | 4 ++--
Objects/stringobject.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c
--- a/Objects/bytearrayobject.c
+++ b/Objects/bytearrayobject.c
@@ -1990,7 +1990,7 @@
}
if (to_len == 0) {
- /* delete all occurances of 'from' bytes */
+ /* delete all occurrences of 'from' bytes */
if (from_len == 1) {
return replace_delete_single_character(
self, from_s[0], maxcount);
@@ -2399,7 +2399,7 @@
PyDoc_STRVAR(remove__doc__,
"B.remove(int) -> None\n\
\n\
-Remove the first occurance of a value in B.");
+Remove the first occurrence of a value in B.");
static PyObject *
bytearray_remove(PyByteArrayObject *self, PyObject *arg)
{
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -2775,7 +2775,7 @@
}
if (to_len == 0) {
- /* delete all occurances of 'from' string */
+ /* delete all occurrences of 'from' string */
if (from_len == 1) {
return replace_delete_single_character(
self, from_s[0], maxcount);
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list