mirror of
https://github.com/python/cpython.git
synced 2025-08-24 10:45:53 +00:00
bpo-36710: Use tstate in pylifecycle.c (GH-14249)
In pylifecycle.c: pass tstate argument, rather than interp argument, to functions.
This commit is contained in:
parent
35068bd059
commit
b45d259bdd
8 changed files with 121 additions and 109 deletions
|
@ -15792,8 +15792,10 @@ init_fs_encoding(PyInterpreterState *interp)
|
|||
|
||||
|
||||
PyStatus
|
||||
_PyUnicode_InitEncodings(PyInterpreterState *interp)
|
||||
_PyUnicode_InitEncodings(PyThreadState *tstate)
|
||||
{
|
||||
PyInterpreterState *interp = tstate->interp;
|
||||
|
||||
PyStatus status = init_fs_encoding(interp);
|
||||
if (_PyStatus_EXCEPTION(status)) {
|
||||
return status;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue