Skip to content

Commit 0af0306

Browse files
author
Victor Stinner
committed
Remove unused variable if Python is build without threads
1 parent eff61f6 commit 0af0306

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Python/import.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2349,7 +2349,9 @@ PyImport_ImportModuleNoBlock(const char *name)
23492349
{
23502350
PyObject *result;
23512351
PyObject *modules;
2352+
#ifdef WITH_THREAD
23522353
long me;
2354+
#endif
23532355

23542356
/* Try to get the module from sys.modules[name] */
23552357
modules = PyImport_GetModuleDict();

0 commit comments

Comments
 (0)