summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-11-27 17:32:55 (GMT)
committerGitHub <noreply@github.com>2023-11-27 17:32:55 (GMT)
commit4eea1e82369fbf7a795d1956e7a8212a1b58009f (patch)
tree09439d67186c0c00b144a4b5683cb365eae404a4 /Python
parent812360fddda86d7aff5823f529ab720f57ddc411 (diff)
downloadcpython-4eea1e82369fbf7a795d1956e7a8212a1b58009f.zip
cpython-4eea1e82369fbf7a795d1956e7a8212a1b58009f.tar.gz
cpython-4eea1e82369fbf7a795d1956e7a8212a1b58009f.tar.bz2
gh-112438: Fix support of format units with the "e" prefix in nested tuples in PyArg_Parse (gh-112439)
Diffstat (limited to 'Python')
-rw-r--r--Python/getargs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index c0c2eb2..5ff8f74 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -477,7 +477,7 @@ 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))
+ else if (level == 0 && Py_ISALPHA(c) && c != 'e')
n++;
}