summaryrefslogtreecommitdiff
path: root/Python/compile.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-18 22:07:56 +0100
committerVictor Stinner <victor.stinner@gmail.com>2014-02-18 22:07:56 +0100
commit3dc624a9d37e4623547d80ea8fb3c0e369498b2f (patch)
tree1fdfe42a046bac6b0fa017806ffef695b5f01c6a /Python/compile.c
parente449889b393462ebdd2f8158770a53eac8439ee8 (diff)
downloadcpython-3dc624a9d37e4623547d80ea8fb3c0e369498b2f.tar.gz
Issue #20625: Fix compilation issue
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 57a232919d..9978eb3a1d 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -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) {