Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2d15d9d

Browse files
committed
mark SyntaxError__str__ as METH_VARARGS
1 parent bdd44a3 commit 2d15d9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/exceptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ SyntaxError__str__(PyObject* self, PyObject* args)
727727

728728
PyMethodDef SyntaxError_methods[] = {
729729
{"__init__", SyntaxError__init__, 1},
730-
{"__str__", SyntaxError__str__,},
730+
{"__str__", SyntaxError__str__, 1},
731731
{NULL, NULL}
732732
};
733733

0 commit comments

Comments
 (0)