From: Neal Norwitz <nnorwitz@gmail.com>
Date: Fri, 24 Feb 2006 23:11:14 +0000 (+0000)
Subject: Implement change suggested by Jiwon Seo on python-dev.
X-Git-Tag: v2.5a0~547
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d074beb6925a87874600b605a91a23263b3a6028;p=python

Implement change suggested by Jiwon Seo on python-dev.
['(' gen_for ')'] is redundant with test, so remove it.
---

diff --git a/Grammar/Grammar b/Grammar/Grammar
index 1553b34738..666ff44d0e 100644
--- a/Grammar/Grammar
+++ b/Grammar/Grammar
@@ -116,7 +116,7 @@ dictmaker: test ':' test (',' test ':' test)* [',']
 classdef: 'class' NAME ['(' [testlist] ')'] ':' suite
 
 arglist: (argument ',')* (argument [',']| '*' test [',' '**' test] | '**' test)
-argument: test [gen_for] | test '=' test ['(' gen_for ')']  # Really [keyword '='] test
+argument: test [gen_for] | test '=' test  # Really [keyword '='] test
 
 list_iter: list_for | list_if
 list_for: 'for' exprlist 'in' testlist_safe [list_iter]