Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
3d50abd9
Commit
3d50abd9
authored
9 years ago
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix generator expressions as sole function call argument
parent
353869f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Cython/Compiler/Parsing.py
Cython/Compiler/Parsing.py
+1
-1
No files found.
Cython/Compiler/Parsing.py
View file @
3d50abd9
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment