summaryrefslogtreecommitdiff
path: root/Python/getargs.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-19 04:25:23 +0000
committerGuido van Rossum <guido@python.org>1997-12-19 04:25:23 +0000
commit7d4f68c15f9cd63e26dc5da0795b5ad6a44fe470 (patch)
tree72004f87ed371288e717319c18d50609c135f5df /Python/getargs.c
parent414fd4843ae2ad1c559e80b309351827173fc91a (diff)
downloadcpython-git-7d4f68c15f9cd63e26dc5da0795b5ad6a44fe470.tar.gz
Oops -- '(' is also a legal start character of a new format...
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 7931b33cf9..296a3aa2c7 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);