commit | 70b224d8d4b7ab1dfa249510d8d6e6e53468f75c | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Thu Dec 06 17:49:58 2012 -0500 |
committer | Benjamin Peterson <benjamin@python.org> | Thu Dec 06 17:49:58 2012 -0500 |
tree | ebdb40ff893f4e1699be824b11b216cd6631fae3 | |
parent | 442f20996dcd994d1024e5cad7f66a4595352eb2 [diff] [blame] |
assert than we never try to deal with True, False, or None as a name
diff --git a/Python/compile.c b/Python/compile.c index 3e960cc..8f876a6 100644 --- a/Python/compile.c +++ b/Python/compile.c
@@ -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);