]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove unused variable if Python is build without threads
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 1 Sep 2011 22:21:36 +0000 (00:21 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 1 Sep 2011 22:21:36 +0000 (00:21 +0200)
Python/import.c

index 990ee51311e9cd1949770177442368ef8543ad2e..2ec0dd32abbf87487f868a88c51134cbcfb01f92 100644 (file)
@@ -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();