diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-11-08 19:56:21 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-11-08 19:56:21 (GMT) |
commit | bde1676b06fe4c18892f5cbe654bdbc8e34cecba (patch) | |
tree | 608e763736f02d2ff2c1fe6743ec0a9e88384299 /Python/ast.c | |
parent | 06fd5f8cc854c79b5a4b113d7ef9ab01227d94cf (diff) | |
download | cpython-bde1676b06fe4c18892f5cbe654bdbc8e34cecba.zip cpython-bde1676b06fe4c18892f5cbe654bdbc8e34cecba.tar.gz cpython-bde1676b06fe4c18892f5cbe654bdbc8e34cecba.tar.bz2 |
Merged revisions 67171 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67171 | benjamin.peterson | 2008-11-08 12:38:54 -0600 (Sat, 08 Nov 2008) | 4 lines
check for assignment to __debug__ during AST generation
Also, give assignment to None a better error message
........
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/ast.c b/Python/ast.c index 60906a1..1cf100e 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -354,6 +354,7 @@ static const char* FORBIDDEN[] = { "None", "True", "False", + "__debug__", NULL, }; |