diff Python/import.c @ 72171:85a12278de69 2.7

Remove unused variable if Python is build without threads
author Victor Stinner <victor.stinner@haypocalc.com>
date Fri, 02 Sep 2011 00:21:36 +0200
parents b36cb4602e21
children c9bb16b7d148
line wrap: on
line diff
--- a/Python/import.c	Thu Sep 01 08:19:01 2011 +0300
+++ b/Python/import.c	Fri Sep 02 00:21:36 2011 +0200
@@ -2064,7 +2064,9 @@
 {
     PyObject *result;
     PyObject *modules;
+#ifdef WITH_THREAD
     long me;
+#endif
 
     /* Try to get the module from sys.modules[name] */
     modules = PyImport_GetModuleDict();