[Python-3000-checkins] r63933 - in python/branches/py3k: Doc/c-api/conversion.rst Objects/bytearrayobject.c Objects/bytesobject.c

georg.brandl python-3000-checkins at python.org
Wed Jun 4 13:30:27 CEST 2008


Author: georg.brandl
Date: Wed Jun  4 13:30:26 2008
New Revision: 63933

Log:
Fix misspelling.


Modified:
   python/branches/py3k/Doc/c-api/conversion.rst
   python/branches/py3k/Objects/bytearrayobject.c
   python/branches/py3k/Objects/bytesobject.c

Modified: python/branches/py3k/Doc/c-api/conversion.rst
==============================================================================
--- python/branches/py3k/Doc/c-api/conversion.rst	(original)
+++ python/branches/py3k/Doc/c-api/conversion.rst	Wed Jun  4 13:30:26 2008
@@ -83,11 +83,11 @@
    
 .. 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.

Modified: python/branches/py3k/Objects/bytearrayobject.c
==============================================================================
--- python/branches/py3k/Objects/bytearrayobject.c	(original)
+++ python/branches/py3k/Objects/bytearrayobject.c	Wed Jun  4 13:30:26 2008
@@ -947,7 +947,7 @@
         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;
         }
 

Modified: python/branches/py3k/Objects/bytesobject.c
==============================================================================
--- python/branches/py3k/Objects/bytesobject.c	(original)
+++ python/branches/py3k/Objects/bytesobject.c	Wed Jun  4 13:30:26 2008
@@ -818,7 +818,7 @@
 		    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;


More information about the Python-3000-checkins mailing list