Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 83792:d1ba1228a04f
fix compilation on Windows
| author | Victor Stinner <victor.stinner@gmail.com> |
|---|---|
| date | Thu, 16 May 2013 22:17:17 +0200 |
| parents | 6db3741e59be |
| children | aaa6e8b8a5c9 |
line wrap: on
line diff
--- a/Python/compile.c Thu May 16 14:37:25 2013 -0500 +++ b/Python/compile.c Thu May 16 22:17:17 2013 +0200 @@ -1360,10 +1360,11 @@ 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),
