mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
Mereg 3.2.
This commit is contained in:
commit
7fda33b56a
1 changed files with 3 additions and 1 deletions
|
|
@ -383,6 +383,8 @@ PyTypeObject*
|
||||||
PyStructSequence_NewType(PyStructSequence_Desc *desc)
|
PyStructSequence_NewType(PyStructSequence_Desc *desc)
|
||||||
{
|
{
|
||||||
PyTypeObject *result = (PyTypeObject*)PyType_GenericAlloc(&PyType_Type, 0);
|
PyTypeObject *result = (PyTypeObject*)PyType_GenericAlloc(&PyType_Type, 0);
|
||||||
PyStructSequence_InitType(result, desc);
|
if (result != NULL) {
|
||||||
|
PyStructSequence_InitType(result, desc);
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue