summaryrefslogtreecommitdiff
path: root/Python/import.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-09-02 00:21:36 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-09-02 00:21:36 +0200
commit871a0fbf460ed392e0e42ee7eee7ed6266216ae8 (patch)
tree5ecf0177f45dea9e4d5071efd22f504823a7b1ad /Python/import.c
parent4f14a1ff52e2fb2a3a5dffd606ac6d61f5203ce0 (diff)
downloadcpython-git-871a0fbf460ed392e0e42ee7eee7ed6266216ae8.tar.gz
Remove unused variable if Python is build without threads
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/import.c b/Python/import.c
index 990ee51311..2ec0dd32ab 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();