Commit 70b224d8 authored by Benjamin Peterson's avatar Benjamin Peterson

assert than we never try to deal with True, False, or None as a name

parent 442f2099
......@@ -2635,6 +2635,10 @@ compiler_nameop(struct compiler *c, identifier name, expr_context_ty ctx)
if (!mangled)
return 0;
assert(PyUnicode_CompareWithASCIIString(name, "None") &&
PyUnicode_CompareWithASCIIString(name, "True") &&
PyUnicode_CompareWithASCIIString(name, "False"));
op = 0;
optype = OP_NAME;
scope = PyST_GetScope(c->u->u_ste, mangled);
......
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