summaryrefslogtreecommitdiffstats
path: root/Python/getargs.c
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-12-03 10:59:46 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-12-03 10:59:46 (GMT)
commitf08173bb939f3d45594cb674acb092af9cf23747 (patch)
treecd7990cb5364dcb19c0c46baa8ac042978dd29ba /Python/getargs.c
parent05159c4a7b37403613772a0883bd927bb57e8060 (diff)
downloadcpython-f08173bb939f3d45594cb674acb092af9cf23747.zip
cpython-f08173bb939f3d45594cb674acb092af9cf23747.tar.gz
cpython-f08173bb939f3d45594cb674acb092af9cf23747.tar.bz2
Issue #7414: Add missing 'case 'C'' to skipitem() in getargs.c. This
was causing PyArg_ParseTupleAndKeywords(args, kwargs, "|CC", ...) to fail with a RuntimeError. Thanks Case Van Horsen for tracking down the source of this error.
Diffstat (limited to 'Python/getargs.c')
-rw-r--r--Python/getargs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index f41cd05..b69aaed 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -1772,6 +1772,7 @@ skipitem(const char **p_format, va_list *p_va, int flags)
case 'd': /* double */
case 'D': /* complex double */
case 'c': /* char */
+ case 'C': /* unicode char */
{
(void) va_arg(*p_va, void *);
break;