]> granicus.if.org Git - python/commitdiff
Oops -- '(' is also a legal start character of a new format...
authorGuido van Rossum <guido@python.org>
Fri, 19 Dec 1997 04:25:23 +0000 (04:25 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 19 Dec 1997 04:25:23 +0000 (04:25 +0000)
Python/getargs.c

index 7931b33cf96924d2ecb8ed38e68e5600e35ec7a4..296a3aa2c7ccad815b05ab95f933d4897f22d2f3 100644 (file)
@@ -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);