From e5d68aceb529934e75d505bbfaf867e02493a1bc Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 4 Jun 2008 11:30:26 +0000 Subject: Fix misspelling. --- Doc/c-api/conversion.rst | 4 ++-- Objects/bytearrayobject.c | 2 +- Objects/bytesobject.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/c-api/conversion.rst b/Doc/c-api/conversion.rst index 8fc424d..f926094 100644 --- a/Doc/c-api/conversion.rst +++ b/Doc/c-api/conversion.rst @@ -83,11 +83,11 @@ The following functions provide locale-independent string to number conversions. .. cfunction:: char * PyOS_stricmp(char *s1, char *s2) - Case insensitive comparsion of strings. The functions works almost + Case insensitive comparison of strings. The functions works almost identical to :cfunc:`strcmp` except that it ignores the case. .. cfunction:: char * PyOS_strnicmp(char *s1, char *s2, Py_ssize_t size) - Case insensitive comparsion of strings. The functions works almost + Case insensitive comparison of strings. The functions works almost identical to :cfunc:`strncmp` except that it ignores the case. diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c index 1442c72..75a8eef 100644 --- a/Objects/bytearrayobject.c +++ b/Objects/bytearrayobject.c @@ -947,7 +947,7 @@ bytes_richcompare(PyObject *self, PyObject *other, int op) PyObject_IsInstance(other, (PyObject*)&PyUnicode_Type)) { if (Py_BytesWarningFlag && op == Py_EQ) { if (PyErr_WarnEx(PyExc_BytesWarning, - "Comparsion between bytearray and string", 1)) + "Comparison between bytearray and string", 1)) return NULL; } diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index b64178d..3f22e7c 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -818,7 +818,7 @@ string_richcompare(PyBytesObject *a, PyBytesObject *b, int op) PyObject_IsInstance((PyObject*)b, (PyObject*)&PyUnicode_Type))) { if (PyErr_WarnEx(PyExc_BytesWarning, - "Comparsion between bytes and string", 1)) + "Comparison between bytes and string", 1)) return NULL; } result = Py_NotImplemented; -- cgit v0.12