get rid of is_list_comp boolean in favor of a direct check of ListComprehensionFlow
This commit is contained in:
1 parent
dd8e4341db
commit
0b926ca454
7 files changed
+17
-21
No files matched your search
@@ -687,11 +687,10 @@ class ForFlow(Flow):
|
||||
"""
|
||||
Used for the for loop, because there are two statement parts.
|
||||
"""
|
||||
def __init__(self, module, inputs, start_pos, set_stmt, is_list_comp=False):
|
||||
def __init__(self, module, inputs, start_pos, set_stmt):
|
||||
super(ForFlow, self).__init__(module, 'for', inputs, start_pos)
|
||||
|
||||
self.set_stmt = set_stmt
|
||||
self.is_list_comp = is_list_comp
|
||||
|
||||
if set_stmt is not None:
|
||||
set_stmt.parent = self.use_as_parent
|
||||
|
||||
Reference in new issue
Block a user