summaryrefslogtreecommitdiff
path: root/Modules/parsermodule.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-02-10 01:08:50 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2003-02-10 01:08:50 +0000
commite4b5500e549171450f5b61b9fdb0ca22aa1dab44 (patch)
treef29fada252dc41e443f03c0fe794a5eee877d4f4 /Modules/parsermodule.c
parentf6b56aecad067f730d7fc6ae76cca94a26c3c896 (diff)
downloadcpython-git-e4b5500e549171450f5b61b9fdb0ca22aa1dab44.tar.gz
Remove duplicate code introduced by fixing bug #678518
Diffstat (limited to 'Modules/parsermodule.c')
-rw-r--r--Modules/parsermodule.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c
index d082c09f15..eb9599c952 100644
--- a/Modules/parsermodule.c
+++ b/Modules/parsermodule.c
@@ -1719,9 +1719,6 @@ validate_global_stmt(node *tree)
if (!res && !PyErr_Occurred())
err_string("illegal global statement");
- if (!res && !PyErr_Occurred())
- err_string("illegal global statement");
-
if (res)
res = (validate_name(CHILD(tree, 0), "global")
&& validate_ntype(CHILD(tree, 1), NAME));