summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-09-01 22:11:43 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-09-01 22:11:43 (GMT)
commit0af0306396eb05c8c55951bc3dc04aa0a4c007ae (patch)
tree345017cb983e9c69cf8d7ef2078d2b80d18b803e /Python
parenteff61f6927c94c82b5fc8f0a266340f1e91a363c (diff)
downloadcpython-0af0306396eb05c8c55951bc3dc04aa0a4c007ae.zip
cpython-0af0306396eb05c8c55951bc3dc04aa0a4c007ae.tar.gz
cpython-0af0306396eb05c8c55951bc3dc04aa0a4c007ae.tar.bz2
Remove unused variable if Python is build without threads
Diffstat (limited to 'Python')
-rw-r--r--Python/import.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/import.c b/Python/import.c
index 23752ee..93defef 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -2349,7 +2349,9 @@ PyImport_ImportModuleNoBlock(const char *name)
{
PyObject *result;
PyObject *modules;
+#ifdef WITH_THREAD
long me;
+#endif
/* Try to get the module from sys.modules[name] */
modules = PyImport_GetModuleDict();