summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-18 21:07:56 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-02-18 21:07:56 (GMT)
commit065efc3072c244ba34ce521ba0edaa4168fa8953 (patch)
treeb8900d611220a15ed2549af6b082d508c01b28bd /Python/compile.c
parent5f47ac2aaab2a4f23897a680ed264e0ae2032b1c (diff)
downloadcpython-065efc3072c244ba34ce521ba0edaa4168fa8953.zip
cpython-065efc3072c244ba34ce521ba0edaa4168fa8953.tar.gz
cpython-065efc3072c244ba34ce521ba0edaa4168fa8953.tar.bz2
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 57a2329..9978eb3 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) {