From 440bbd0e388ee516bf93be0f96ea7de7fafc4f32 Mon Sep 17 00:00:00 2001 From: Martin Panter Date: Thu, 8 Sep 2016 05:22:16 +0000 Subject: =?UTF-8?q?Correct=20occurance=20=E2=86=92=20occurrence;=20extract?= =?UTF-8?q?ed=20from=20patch=20by=20Georg=20Brandl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 index f13bc14..9e3cead 100644 --- a/Objects/bytearrayobject.c +++ b/Objects/bytearrayobject.c @@ -1990,7 +1990,7 @@ replace(PyByteArrayObject *self, } 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 @@ bytearray_pop(PyByteArrayObject *self, PyObject *args) 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 index 4e5d917..aa88152 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -2775,7 +2775,7 @@ replace(PyStringObject *self, } 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); -- cgit v0.12