Commit 0b1bc56b authored by Victor Stinner's avatar Victor Stinner

fix compilation on Windows

parent e8e14591
...@@ -1360,10 +1360,11 @@ compiler_mod(struct compiler *c, mod_ty mod) ...@@ -1360,10 +1360,11 @@ compiler_mod(struct compiler *c, mod_ty mod)
static int static int
get_ref_type(struct compiler *c, PyObject *name) get_ref_type(struct compiler *c, PyObject *name)
{ {
int scope;
if (c->u->u_scope_type == COMPILER_SCOPE_CLASS && if (c->u->u_scope_type == COMPILER_SCOPE_CLASS &&
!PyUnicode_CompareWithASCIIString(name, "__class__")) !PyUnicode_CompareWithASCIIString(name, "__class__"))
return CELL; return CELL;
int scope = PyST_GetScope(c->u->u_ste, name); scope = PyST_GetScope(c->u->u_ste, name);
if (scope == 0) { if (scope == 0) {
char buf[350]; char buf[350];
PyOS_snprintf(buf, sizeof(buf), PyOS_snprintf(buf, sizeof(buf),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment