From d8fe7ab711df2d6380aeff085fe8eda6b268f3eb Mon Sep 17 00:00:00 2001
From: Tim Peters <tim.peters@gmail.com>
Date: Sun, 8 Jan 2006 02:19:07 +0000
Subject: [PATCH] analyze_cells():  This no longer compiled under VC 7.1. Move
 declaration of local `flags` to top of block.

---
 Python/symtable.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Python/symtable.c b/Python/symtable.c
index 915324df1e..7e876d4c96 100644
--- a/Python/symtable.c
+++ b/Python/symtable.c
@@ -432,8 +432,9 @@ analyze_cells(PyObject *scope, PyObject *free)
 	if (!w)
 		return 0;
 	while (PyDict_Next(scope, &pos, &name, &v)) {
+		long flags;
 		assert(PyInt_Check(v));
-		long flags = PyInt_AS_LONG(v);
+		flags = PyInt_AS_LONG(v);
 		if (flags != LOCAL)
 			continue;
 		if (!PyDict_GetItem(free, name))
-- 
2.49.0