mirror of https://github.com/python/cpython
Remove duplicate code introduced by fixing bug #678518
This commit is contained in:
parent
f6b56aecad
commit
e4b5500e54
|
@ -1719,9 +1719,6 @@ validate_global_stmt(node *tree)
|
||||||
if (!res && !PyErr_Occurred())
|
if (!res && !PyErr_Occurred())
|
||||||
err_string("illegal global statement");
|
err_string("illegal global statement");
|
||||||
|
|
||||||
if (!res && !PyErr_Occurred())
|
|
||||||
err_string("illegal global statement");
|
|
||||||
|
|
||||||
if (res)
|
if (res)
|
||||||
res = (validate_name(CHILD(tree, 0), "global")
|
res = (validate_name(CHILD(tree, 0), "global")
|
||||||
&& validate_ntype(CHILD(tree, 1), NAME));
|
&& validate_ntype(CHILD(tree, 1), NAME));
|
||||||
|
|
Loading…
Reference in New Issue