diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-05-16 20:17:17 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-05-16 20:17:17 (GMT) |
commit | 0b1bc56bb663932807b34713ce1fe014bc52ea99 (patch) | |
tree | 1869686d20825199f46b50314e528fa65e87c4b3 /Python/compile.c | |
parent | e8e14591ebb729b4fa19626ce245fa0811cf6f32 (diff) | |
download | cpython-0b1bc56bb663932807b34713ce1fe014bc52ea99.zip cpython-0b1bc56bb663932807b34713ce1fe014bc52ea99.tar.gz cpython-0b1bc56bb663932807b34713ce1fe014bc52ea99.tar.bz2 |
fix compilation on Windows
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index 65043e4..4fc7575 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), |