gh-84436: Immortalize in _PyStructSequence_InitBuiltinWithFlags() (gh-104054)

This also does some cleanup.
This commit is contained in:
Eric Snow 2023-05-01 15:08:34 -06:00 committed by GitHub
parent d448fcb032
commit 59bc36aacd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 74 additions and 59 deletions

View file

@ -7,7 +7,7 @@
#include "Python.h"
#include "pycore_pystate.h" // _PyInterpreterState_GET()
#include "pycore_structseq.h" // _PyStructSequence_FiniType()
#include "pycore_structseq.h" // _PyStructSequence_FiniBuiltin()
#include "pycore_pythread.h"
#ifndef DONT_HAVE_STDIO_H
@ -195,5 +195,5 @@ _PyThread_FiniType(PyInterpreterState *interp)
return;
}
_PyStructSequence_FiniType(&ThreadInfoType);
_PyStructSequence_FiniBuiltin(&ThreadInfoType);
}