summaryrefslogtreecommitdiffstats
path: root/Python/getargs.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-07-11 17:10:40 (GMT)
committerGitHub <noreply@github.com>2018-07-11 17:10:40 (GMT)
commitec7562068fd123969ab4d27e11f4070271c72e16 (patch)
treef8e08e2bef87e14dbd96bb1850610ee01406102d /Python/getargs.c
parentd68cb9d62c3671dd9aee5cdecb02fcb3268dacf0 (diff)
downloadcpython-ec7562068fd123969ab4d27e11f4070271c72e16.zip
cpython-ec7562068fd123969ab4d27e11f4070271c72e16.tar.gz
cpython-ec7562068fd123969ab4d27e11f4070271c72e16.tar.bz2
bpo-23927: Make getargs.c skipitem() skipping 'w*'. (GH-8192)
(cherry picked from commit 504373c59b48f1ea12132d515459022730db6047) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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 4d27418..594b150 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -2281,7 +2281,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;