]> granicus.if.org Git - python/commitdiff
Remove duplicate code introduced by fixing bug #678518
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 10 Feb 2003 01:08:50 +0000 (01:08 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 10 Feb 2003 01:08:50 +0000 (01:08 +0000)
Modules/parsermodule.c

index d082c09f15e5038928d756dcecf7d0bf794e0176..eb9599c95262b3aba915ff70b241ac90ca9646c3 100644 (file)
@@ -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));