summaryrefslogtreecommitdiff
path: root/Python/getargs.c
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-12-03 10:59:46 +0000
committerMark Dickinson <dickinsm@gmail.com>2009-12-03 10:59:46 +0000
commit75ca61558705a01811796175088fbf326416257b (patch)
tree461a0e45da04bede66a3229537b93ddff88de1a9 /Python/getargs.c
parentf4a893939a986a38c5032afa570fd3be2960fc3c (diff)
downloadcpython-75ca61558705a01811796175088fbf326416257b.tar.gz
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 f41cd05eaf..b69aaed56c 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;