Kaydet (Commit) e5d68ace authored tarafından Georg Brandl's avatar Georg Brandl

Fix misspelling.

üst f342bfcb
...@@ -83,11 +83,11 @@ The following functions provide locale-independent string to number conversions. ...@@ -83,11 +83,11 @@ The following functions provide locale-independent string to number conversions.
.. cfunction:: char * PyOS_stricmp(char *s1, char *s2) .. 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. identical to :cfunc:`strcmp` except that it ignores the case.
.. cfunction:: char * PyOS_strnicmp(char *s1, char *s2, Py_ssize_t size) .. 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. identical to :cfunc:`strncmp` except that it ignores the case.
...@@ -947,7 +947,7 @@ bytes_richcompare(PyObject *self, PyObject *other, int op) ...@@ -947,7 +947,7 @@ bytes_richcompare(PyObject *self, PyObject *other, int op)
PyObject_IsInstance(other, (PyObject*)&PyUnicode_Type)) { PyObject_IsInstance(other, (PyObject*)&PyUnicode_Type)) {
if (Py_BytesWarningFlag && op == Py_EQ) { if (Py_BytesWarningFlag && op == Py_EQ) {
if (PyErr_WarnEx(PyExc_BytesWarning, if (PyErr_WarnEx(PyExc_BytesWarning,
"Comparsion between bytearray and string", 1)) "Comparison between bytearray and string", 1))
return NULL; return NULL;
} }
......
...@@ -818,7 +818,7 @@ string_richcompare(PyBytesObject *a, PyBytesObject *b, int op) ...@@ -818,7 +818,7 @@ string_richcompare(PyBytesObject *a, PyBytesObject *b, int op)
PyObject_IsInstance((PyObject*)b, PyObject_IsInstance((PyObject*)b,
(PyObject*)&PyUnicode_Type))) { (PyObject*)&PyUnicode_Type))) {
if (PyErr_WarnEx(PyExc_BytesWarning, if (PyErr_WarnEx(PyExc_BytesWarning,
"Comparsion between bytes and string", 1)) "Comparison between bytes and string", 1))
return NULL; return NULL;
} }
result = Py_NotImplemented; result = Py_NotImplemented;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment