]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merged revisions 72795 via svnmerge from
authorMark Dickinson <dickinsm@gmail.com>
Wed, 20 May 2009 17:59:15 +0000 (17:59 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Wed, 20 May 2009 17:59:15 +0000 (17:59 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r72795 | mark.dickinson | 2009-05-20 18:57:28 +0100 (Wed, 20 May 2009) | 9 lines

  Merged revisions 72794 via svnmerge from
  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 5fedba30088d0456cc6ae819ba206f9737e67d52..1c420e517d52f888f31aa34850b65f0685c14d7b 100644 (file)
@@ -444,7 +444,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) {
@@ -500,7 +500,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;
        }