Skip to content

Commit

Permalink
Update Python/getargs.c
Browse files Browse the repository at this point in the history
Co-authored-by: Erlend E. Aasland <[email protected]>
  • Loading branch information
serhiy-storchaka and erlend-aasland authored Jan 2, 2025
1 parent fac1989 commit ab1ea18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Python/getargs.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,9 @@ converttuple(PyObject *arg, const char **p_format, va_list *p_va, int flags,
else if (c == ':' || c == ';' || c == '\0')
break;
else {
if (level == 0 && Py_ISALPHA(c))
if (level == 0 && Py_ISALPHA(c)) {
n++;
}
if (c == 'e' && (*format == 's' || *format == 't')) {
format++;
continue;
Expand Down

0 comments on commit ab1ea18

Please sign in to comment.