From: Georg Brandl Date: Wed, 4 Jun 2008 11:30:26 +0000 (+0000) Subject: Fix misspelling. X-Git-Tag: v3.0b1~159 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e5d68aceb529934e75d505bbfaf867e02493a1bc;p=thirdparty%2FPython%2Fcpython.git Fix misspelling. --- diff --git a/Doc/c-api/conversion.rst b/Doc/c-api/conversion.rst index 8fc424df8e71..f926094269e2 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 1442c7273237..75a8eef9c0b7 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 b64178d623db..3f22e7c772ed 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;