Skip to content

Commit 8f2ad4f

Browse files
committed
Fix warning: PyEval_InitThreads deprecated
Since version 3.7, this function is a no-op and is slated for removal in a future Python version.
1 parent 22b8dd1 commit 8f2ad4f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

fuseparts/_fusemodule.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,9 @@ pyfuse_loop_mt(struct fuse *f)
13061306
#ifdef WITH_THREAD
13071307
PyThreadState *save;
13081308

1309+
#if PY_VERSION_HEX < 0x03070000
13091310
PyEval_InitThreads();
1311+
#endif
13101312
interp = PyThreadState_Get()->interp;
13111313
save = PyEval_SaveThread();
13121314
err = fuse_loop_mt(f);

0 commit comments

Comments
 (0)