summaryrefslogtreecommitdiffstats
path: root/Python/getargs.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-07-11 14:41:43 (GMT)
committerGitHub <noreply@github.com>2018-07-11 14:41:43 (GMT)
commit504373c59b48f1ea12132d515459022730db6047 (patch)
tree322726bb6a2abfc2a6422e9c947db4c6d7b1cfde /Python/getargs.c
parentb91a3a0d61596cafb1b46c98fab65fee16a8bbbb (diff)
downloadcpython-504373c59b48f1ea12132d515459022730db6047.zip
cpython-504373c59b48f1ea12132d515459022730db6047.tar.gz
cpython-504373c59b48f1ea12132d515459022730db6047.tar.bz2
bpo-23927: Make getargs.c skipitem() skipping 'w*'. (GH-8192)
Diffstat (limited to 'Python/getargs.c')
-rw-r--r--Python/getargs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index 97c1fe8..992cb21 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -2333,7 +2333,9 @@ skipitem(const char **p_format, va_list *p_va, int flags)
(void) va_arg(*p_va, int *);
}
format++;
- } else if ((c == 's' || c == 'z' || c == 'y') && *format == '*') {
+ } else if ((c == 's' || c == 'z' || c == 'y' || c == 'w')
+ && *format == '*')
+ {
format++;
}
break;