[Python-checkins] r59135 - python/trunk/Python/ast.c

christian.heimes python-checkins at python.org
Fri Nov 23 14:25:31 CET 2007


Author: christian.heimes
Date: Fri Nov 23 14:25:31 2007
New Revision: 59135

Modified:
   python/trunk/Python/ast.c
Log:
And yet another fix for the patch. Paul Moore has send me a note that I've missed a declaration. The additional code has moved the declaration in the middle of the block.

Modified: python/trunk/Python/ast.c
==============================================================================
--- python/trunk/Python/ast.c	(original)
+++ python/trunk/Python/ast.c	Fri Nov 23 14:25:31 2007
@@ -1336,15 +1336,16 @@
         return Dict(keys, values, LINENO(n), n->n_col_offset, c->c_arena);
     }
     case BACKQUOTE: { /* repr */
+        expr_ty expression;
         if (Py_Py3kWarningFlag) {
-		if (PyErr_WarnExplicit(PyExc_DeprecationWarning,
-				       "backquote not supported in 3.x",
-				       "<unknown>", LINENO(n),
-				       NULL, NULL)) {
-			return NULL;
-		}
-	}
-        expr_ty expression = ast_for_testlist(c, CHILD(n, 1));
+            if (PyErr_WarnExplicit(PyExc_DeprecationWarning,
+                                   "backquote not supported in 3.x",
+                                   "<unknown>", LINENO(n),
+                                   NULL, NULL)) {
+            return NULL;
+            }
+        }
+        expression = ast_for_testlist(c, CHILD(n, 1));
         if (!expression)
             return NULL;
 


More information about the Python-checkins mailing list