diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-10-16 03:51:38 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-10-16 03:51:38 +0000 |
commit | f76942d6bf432d6881dc47070002d226e1e15ce9 (patch) | |
tree | ad2b0f7773a5c0e64d96016472b670c72cd449f1 /Python | |
parent | 7497e91a20104bd1ff9cc784a6877f8b8403e53d (diff) | |
download | cpython-git-f76942d6bf432d6881dc47070002d226e1e15ce9.tar.gz |
Merged revisions 85562 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85562 | benjamin.peterson | 2010-10-15 22:45:45 -0500 (Fri, 15 Oct 2010) | 1 line
don't identify the toplevel namespace by name #9997
........
Diffstat (limited to 'Python')
-rw-r--r-- | Python/symtable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/symtable.c b/Python/symtable.c index 98d1e11564..c18b39ecf1 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -847,7 +847,7 @@ symtable_enter_block(struct symtable *st, identifier name, _Py_block_ty block, st->st_cur = ste_new(st, name, block, ast, lineno); if (st->st_cur == NULL) return 0; - if (name == GET_IDENTIFIER(top)) + if (block == ModuleBlock) st->st_global = st->st_cur->ste_symbols; if (prev) { if (PyList_Append(prev->ste_children, |