Commit 3d50abd9 authored by Stefan Behnel's avatar Stefan Behnel

fix generator expressions as sole function call argument

parent 353869f6
......@@ -467,7 +467,7 @@ def p_call_parse_args(s, allow_genexp=True):
if s.sy == 'for':
if not keyword_args and not last_was_tuple_unpack:
if len(positional_args) == 1 and len(positional_args[0]) == 1:
positional_args = [p_genexp(s, positional_args[0][0])]
positional_args = [[p_genexp(s, positional_args[0][0])]]
s.expect(')')
return positional_args or [[]], keyword_args
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment