mirror of
https://github.com/zrax/pycdc.git
synced 2026-06-23 11:34:07 +00:00
Merge from #267
This commit is contained in:
commit
e2db195b85
1 changed files with 1 additions and 1 deletions
|
|
@ -1784,7 +1784,7 @@ PycRef<ASTNode> BuildFromCode(PycRef<PycCode> code, PycModule* mod)
|
|||
* If it's a comprehension, the only POP_TOP should be
|
||||
* a call to append the iter to the list.
|
||||
*/
|
||||
if (value.type() == ASTNode::NODE_CALL) {
|
||||
if (value.type() == ASTNode::NODE_CALL && !value.cast<ASTCall>()->pparams().empty() ) {
|
||||
PycRef<ASTNode> res = value.cast<ASTCall>()->pparams().front();
|
||||
|
||||
stack.push(new ASTComprehension(res));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue