summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-09-01 22:21:36 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-09-01 22:21:36 (GMT)
commit871a0fbf460ed392e0e42ee7eee7ed6266216ae8 (patch)
tree5ecf0177f45dea9e4d5071efd22f504823a7b1ad /Python
parent4f14a1ff52e2fb2a3a5dffd606ac6d61f5203ce0 (diff)
downloadcpython-871a0fbf460ed392e0e42ee7eee7ed6266216ae8.zip
cpython-871a0fbf460ed392e0e42ee7eee7ed6266216ae8.tar.gz
cpython-871a0fbf460ed392e0e42ee7eee7ed6266216ae8.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 990ee51..2ec0dd3 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -2064,7 +2064,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();