[Python-checkins] cpython (3.2): Remove unused variable if Python is build without threads
victor.stinner
python-checkins at python.org
Fri Sep 2 00:22:26 CEST 2011
http://hg.python.org/cpython/rev/cd1978dbac08
changeset: 72169:cd1978dbac08
branch: 3.2
parent: 72165:51e27f42beda
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Fri Sep 02 00:11:43 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
@@ -2349,7 +2349,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