diff options
author | Thomas Heller <theller@ctypes.org> | 2007-10-24 19:37:27 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2007-10-24 19:37:27 (GMT) |
commit | 39013cd4c0f76b7b6c34efe4e341618f0ad2027a (patch) | |
tree | 2112caf57961f78c961cdb552377778dcbbc7584 /Modules | |
parent | bd1c68c94f0d5bc25b48f62c7527f51c754f2b6b (diff) | |
download | cpython-39013cd4c0f76b7b6c34efe4e341618f0ad2027a.zip cpython-39013cd4c0f76b7b6c34efe4e341618f0ad2027a.tar.gz cpython-39013cd4c0f76b7b6c34efe4e341618f0ad2027a.tar.bz2 |
A 'PyObject *' parameter in PyErr_Format must use %S parameter, not %s.
Added unittest for calling a function with paramflags.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ctypes/_ctypes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index f922630..81276fa 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -2992,7 +2992,7 @@ _get_arg(int *pindex, PyObject *name, PyObject *defval, PyObject *inargs, PyObje /* we can't currently emit a better error message */ if (name) PyErr_Format(PyExc_TypeError, - "required argument '%s' missing", name); + "required argument '%S' missing", name); else PyErr_Format(PyExc_TypeError, "not enough arguments"); |