mirror of https://github.com/python/cpython
Fix misspelling.
This commit is contained in:
parent
f342bfcbd4
commit
e5d68aceb5
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue