]> granicus.if.org Git - python/commitdiff
Fix misspelling.
authorGeorg Brandl <georg@python.org>
Wed, 4 Jun 2008 11:30:26 +0000 (11:30 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 4 Jun 2008 11:30:26 +0000 (11:30 +0000)
Doc/c-api/conversion.rst
Objects/bytearrayobject.c
Objects/bytesobject.c

index 8fc424df8e714497021b96978e6b3c7014b6d3f0..f926094269e21bac90900d7b7384cd8ca9ac5fbf 100644 (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.
index 1442c7273237595687aabcba28de44b82b0990b5..75a8eef9c0b78215d1ea3b50d24c5a67f3895d80 100644 (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;
         }
 
index b64178d623db143f661cc78193020ba1b1c8070d..3f22e7c772ed17c22bda997d9356c61b6c9d186a 100644 (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;