[Python-checkins] cpython (2.7): Remove unused variable if Python is build without threads

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


http://hg.python.org/cpython/rev/85a12278de69
changeset:   72171:85a12278de69
branch:      2.7
parent:      72162:4d584ebbfa77
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Fri Sep 02 00:21:36 2011 +0200
summary:
  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
@@ -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();

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


More information about the Python-checkins mailing list