summaryrefslogtreecommitdiff
path: root/Python/getargs.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-07-11 09:56:05 -0700
committerGitHub <noreply@github.com>2018-07-11 09:56:05 -0700
commit48d2aeb009f8e58b1efae00ee0e225951b58737e (patch)
treee6302ec258ee00e5321f3ae637449080b36abb3e /Python/getargs.c
parent020f5ab7170836b277ac8fef2ce7438ae0145caf (diff)
downloadcpython-git-48d2aeb009f8e58b1efae00ee0e225951b58737e.tar.gz
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 97c1fe8f4c..992cb216c2 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;