mirror of https://github.com/python/cpython
make errors consistent
This commit is contained in:
parent
308c6ba002
commit
8cfa8e613f
|
@ -2052,10 +2052,10 @@ _Py_ReadyTypes(void)
|
||||||
Py_FatalError("Can't initialize str type");
|
Py_FatalError("Can't initialize str type");
|
||||||
|
|
||||||
if (PyType_Ready(&PyByteArray_Type) < 0)
|
if (PyType_Ready(&PyByteArray_Type) < 0)
|
||||||
Py_FatalError("Can't initialize bytearray");
|
Py_FatalError("Can't initialize bytearray type");
|
||||||
|
|
||||||
if (PyType_Ready(&PyList_Type) < 0)
|
if (PyType_Ready(&PyList_Type) < 0)
|
||||||
Py_FatalError("Can't initialize list");
|
Py_FatalError("Can't initialize list type");
|
||||||
|
|
||||||
if (PyType_Ready(&PyNone_Type) < 0)
|
if (PyType_Ready(&PyNone_Type) < 0)
|
||||||
Py_FatalError("Can't initialize None type");
|
Py_FatalError("Can't initialize None type");
|
||||||
|
|
Loading…
Reference in New Issue