Skip to content

Commit 236a627

Browse files
fix keyword in NameError
1 parent 11636f9 commit 236a627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/exceptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2518,7 +2518,7 @@ NameError_init(PyObject *op, PyObject *args, PyObject *kwds)
25182518
if (!empty_tuple) {
25192519
return -1;
25202520
}
2521-
if (!PyArg_ParseTupleAndKeywords(empty_tuple, kwds, "|$O:NameError", kwlist,
2521+
if (!PyArg_ParseTupleAndKeywords(empty_tuple, kwds, "|$OO:NameError", kwlist,
25222522
&name ,&op_type)) {
25232523
Py_DECREF(empty_tuple);
25242524
return -1;

0 commit comments

Comments
 (0)