]> granicus.if.org Git - python/commitdiff
Merged revisions 72794 via svnmerge from
authorMark Dickinson <dickinsm@gmail.com>
Wed, 20 May 2009 17:58:15 +0000 (17:58 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Wed, 20 May 2009 17:58:15 +0000 (17:58 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72794 | mark.dickinson | 2009-05-20 18:55:31 +0100 (Wed, 20 May 2009) | 1 line

  typos in ctypes Module
........

Modules/_ctypes/_ctypes.c

index 7caef2902d133c7a4f64753968930afda0e7a03a..6764c21ed5919a95e2fd64609a2f345b0b790b48 100644 (file)
@@ -477,7 +477,7 @@ CDataType_from_buffer(PyObject *type, PyObject *args)
 
        if (offset < 0) {
                PyErr_SetString(PyExc_ValueError,
-                               "offset cannit be negative");
+                               "offset cannot be negative");
                return NULL;
        }
        if (dict->size > buffer_len - offset) {
@@ -533,7 +533,7 @@ CDataType_from_buffer_copy(PyObject *type, PyObject *args)
 
        if (offset < 0) {
                PyErr_SetString(PyExc_ValueError,
-                               "offset cannit be negative");
+                               "offset cannot be negative");
                return NULL;
        }