FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix warning in _testembed.c (GH-13533) · python/cpython@cccc11b · GitHub

/ cpython Public

Commit cccc11b

Browse files
authored
Fix warning in _testembed.c (GH-13533)
1 parent 608876b commit cccc11b

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎Programs/_testembed.c‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,15 +1231,13 @@ static int _audit_subinterpreter_hook(const char *event, PyObject *args, void *u
12311231

12321232
static int test_audit_subinterpreter(void)
12331233
{
1234-
PyThreadState *ts;
1235-
12361234
Py_IgnoreEnvironmentFlag = 0;
12371235
PySys_AddAuditHook(_audit_subinterpreter_hook, NULL);
12381236
_testembed_Py_Initialize();
12391237

1240-
ts = Py_NewInterpreter();
1241-
ts = Py_NewInterpreter();
1242-
ts = Py_NewInterpreter();
1238+
Py_NewInterpreter();
1239+
Py_NewInterpreter();
1240+
Py_NewInterpreter();
12431241

12441242
Py_Finalize();
12451243

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL