Fix misspelling.

This commit is contained in:
Georg Brandl 2008-06-04 11:30:26 +00:00
parent f342bfcbd4
commit e5d68aceb5
3 changed files with 4 additions and 4 deletions

View File

@ -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.

View File

@ -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;
}

View File

@ -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;