Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 80739:0238cc842805
assert than we never try to deal with True, False, or None as a name
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Thu, 06 Dec 2012 17:49:58 -0500 |
| parents | 03f92a9f0875 |
| children | d296cf1600a8 |
line wrap: on
line diff
--- a/Python/compile.c Thu Dec 06 17:41:04 2012 -0500 +++ b/Python/compile.c Thu Dec 06 17:49:58 2012 -0500 @@ -2635,6 +2635,10 @@ 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);
