diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-07-11 09:56:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-11 09:56:05 -0700 |
commit | 48d2aeb009f8e58b1efae00ee0e225951b58737e (patch) | |
tree | e6302ec258ee00e5321f3ae637449080b36abb3e /Python/getargs.c | |
parent | 020f5ab7170836b277ac8fef2ce7438ae0145caf (diff) | |
download | cpython-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.c | 4 |
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; |