Get rid of is_super_class and do some different things in analysis
This commit is contained in:
1 parent
021d1bc568
commit
644e292fa7
4 files changed
+8
-12
No files matched your search
@@ -153,8 +153,7 @@ class AbstractInstanceContext(Context):
|
||||
def py__iter__(self, contextualized_node=None):
|
||||
iter_slot_names = self.get_function_slot_names(u'__iter__')
|
||||
if not iter_slot_names:
|
||||
debug.warning('No __iter__ on %s.' % self)
|
||||
return
|
||||
return super(AbstractInstanceContext, self).py__iter__(contextualized_node)
|
||||
|
||||
for generator in self.execute_function_slots(iter_slot_names):
|
||||
if generator.is_instance():
|
||||
|
||||
Reference in new issue
Block a user