summaryrefslogtreecommitdiffstats
path: root/Python/getargs.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/getargs.c')
-rw-r--r--Python/getargs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index 7931b33..296a3aa 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -258,6 +258,7 @@ vgetargs1(args, format, p_va, compat)
}
if (*format != '\0' && !isalpha(*format) &&
+ *format != '(' &&
*format != '|' && *format != ':' && *format != ';') {
PyErr_Format(PyExc_SystemError,
"bad format string: %s", formatsave);