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
@@ -88,7 +88,7 @@ class _RecursionNode(object):
|
||||
if not other:
|
||||
return None
|
||||
|
||||
is_list_comp = lambda x: isinstance(x, pr.ForFlow) and x.is_list_comp
|
||||
is_list_comp = lambda x: isinstance(x, iterable.ListComprehensionFlow)
|
||||
return self.script == other.script \
|
||||
and self.position == other.position \
|
||||
and not is_list_comp(self.stmt.parent) \
|
||||
|
||||
Reference in new issue
Block a user