]> granicus.if.org Git - python/commitdiff
Issue #20625: Fix compilation issue
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 18 Feb 2014 21:07:56 +0000 (22:07 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 18 Feb 2014 21:07:56 +0000 (22:07 +0100)
Python/compile.c

index 57a232919d37b2041dac0a430139a81a5a56aba0..9978eb3a1df5ff07e1ba1509663a8a1e28351bb7 100644 (file)
@@ -1532,8 +1532,9 @@ compiler_visit_argannotation(struct compiler *c, identifier id,
     expr_ty annotation, PyObject *names)
 {
     if (annotation) {
+        PyObject *mangled;
         VISIT(c, expr, annotation);
-        PyObject *mangled = _Py_Mangle(c->u->u_private, id);
+        mangled = _Py_Mangle(c->u->u_private, id);
         if (!mangled)
             return -1;
         if (PyList_Append(names, mangled) < 0) {