Skip to content

Commit 7ae52ab

Browse files
committed
typo
1 parent e4b3ccd commit 7ae52ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/pylifecycle.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -804,8 +804,8 @@ pycore_init_builtins(PyThreadState *tstate)
804804
goto error;
805805
}
806806

807-
interp->common_consts[CONSTANT_ASSERTIONERROR] = (PyObject*)&PyTuple_Type;
808-
interp->common_consts[CONSTANT_NOTIMPLEMENTEDERROR] = (PyObject*)&PyTuple_Type;
807+
interp->common_consts[CONSTANT_ASSERTIONERROR] = PyExc_AssertionError;
808+
interp->common_consts[CONSTANT_NOTIMPLEMENTEDERROR] = PyExc_NotImplementedError;
809809
interp->common_consts[CONSTANT_BUILTIN_TUPLE] = (PyObject*)&PyTuple_Type;
810810
interp->common_consts[CONSTANT_BUILTIN_ALL] = all;
811811
interp->common_consts[CONSTANT_BUILTIN_ANY] = any;

0 commit comments

Comments
 (0)