[pypy-svn] r60054 - pypy/trunk/pypy/interpreter/pyparser
fijal at codespeak.net
fijal at codespeak.net
Fri Nov 21 16:34:52 CET 2008
Author: fijal
Date: Fri Nov 21 16:34:50 2008
New Revision: 60054
Modified:
pypy/trunk/pypy/interpreter/pyparser/asthelper.py
Log:
Make this actually work. Logic behind this is rather messy, in short it
should not allow any genexp, once kw arg has been built at some point.
Modified: pypy/trunk/pypy/interpreter/pyparser/asthelper.py
==============================================================================
--- pypy/trunk/pypy/interpreter/pyparser/asthelper.py (original)
+++ pypy/trunk/pypy/interpreter/pyparser/asthelper.py Fri Nov 21 16:34:50 2008
@@ -94,7 +94,7 @@
dstararg_token = tokens[index]
break
elif cur_token.get_value() == 'for':
- if building_kw:
+ if kw_built:
raise SyntaxError("invalid syntax", cur_token.lineno,
cur_token.col)
if len(arguments) != 1:
More information about the Pypy-commit
mailing list