summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-11-27 18:11:09 (GMT)
committerGitHub <noreply@github.com>2023-11-27 18:11:09 (GMT)
commit581b24415525f10ca178d5537e9cbd7558ce938a (patch)
tree0f6d6e02127f47c15ec280b8452761896b9cd49a /Python
parent6d9b1819b84a0285ed706d11b1f7060ddf141355 (diff)
downloadcpython-581b24415525f10ca178d5537e9cbd7558ce938a.zip
cpython-581b24415525f10ca178d5537e9cbd7558ce938a.tar.gz
cpython-581b24415525f10ca178d5537e9cbd7558ce938a.tar.bz2
[3.11] gh-112438: Fix support of format units with the "e" prefix in nested tuples in PyArg_Parse (gh-112439) (GH-112461)
(cherry picked from commit 4eea1e82369fbf7a795d1956e7a8212a1b58009f)
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 3105bd5..e18d771 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -522,7 +522,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++;
}