Mercurial > cpython-lru_cache-weakref
comparison Python/import.c @ 72169:cd1978dbac08 3.2
Remove unused variable if Python is build without threads
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Fri, 02 Sep 2011 00:11:43 +0200 |
| parents | 3c9232a684ae |
| children | 4247f5e221c6 aaab27d4c99c |
comparison
equal
deleted
inserted
replaced
| 72165:51e27f42beda | 72169:cd1978dbac08 |
|---|---|
| 2347 PyObject * | 2347 PyObject * |
| 2348 PyImport_ImportModuleNoBlock(const char *name) | 2348 PyImport_ImportModuleNoBlock(const char *name) |
| 2349 { | 2349 { |
| 2350 PyObject *result; | 2350 PyObject *result; |
| 2351 PyObject *modules; | 2351 PyObject *modules; |
| 2352 #ifdef WITH_THREAD | |
| 2352 long me; | 2353 long me; |
| 2354 #endif | |
| 2353 | 2355 |
| 2354 /* Try to get the module from sys.modules[name] */ | 2356 /* Try to get the module from sys.modules[name] */ |
| 2355 modules = PyImport_GetModuleDict(); | 2357 modules = PyImport_GetModuleDict(); |
| 2356 if (modules == NULL) | 2358 if (modules == NULL) |
| 2357 return NULL; | 2359 return NULL; |
