[Python-checkins] cpython (merge 3.2 -> default): Merge 3.2: Remove unused variable if Python is build without threads

victor.stinner python-checkins at python.org
Fri Sep 2 00:22:27 CEST 2011


http://hg.python.org/cpython/rev/aaab27d4c99c
changeset:   72170:aaab27d4c99c
parent:      72168:86b7f14485c9
parent:      72169:cd1978dbac08
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Fri Sep 02 00:13:16 2011 +0200
summary:
  Merge 3.2: Remove unused variable if Python is build without threads

files:
  Python/import.c |  2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Python/import.c b/Python/import.c
--- a/Python/import.c
+++ b/Python/import.c
@@ -2653,7 +2653,9 @@
 PyImport_ImportModuleNoBlock(const char *name)
 {
     PyObject *nameobj, *modules, *result;
+#ifdef WITH_THREAD
     long me;
+#endif
 
     /* Try to get the module from sys.modules[name] */
     modules = PyImport_GetModuleDict();

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list