From: Victor Stinner Date: Thu, 16 May 2013 20:17:17 +0000 (+0200) Subject: fix compilation on Windows X-Git-Tag: v3.4.0a1~717 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b1bc56bb663932807b34713ce1fe014bc52ea99;p=python fix compilation on Windows --- diff --git a/Python/compile.c b/Python/compile.c index 65043e4396..4fc7575926 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -1360,10 +1360,11 @@ compiler_mod(struct compiler *c, mod_ty mod) static int get_ref_type(struct compiler *c, PyObject *name) { + int scope; if (c->u->u_scope_type == COMPILER_SCOPE_CLASS && !PyUnicode_CompareWithASCIIString(name, "__class__")) return CELL; - int scope = PyST_GetScope(c->u->u_ste, name); + scope = PyST_GetScope(c->u->u_ste, name); if (scope == 0) { char buf[350]; PyOS_snprintf(buf, sizeof(buf),