pylint/reporters/ureports/nodes.py
def parents(self):
        """return the ancestor nodes"""
        assert self.parent is not self
        if self.parent is None:
            return []
        return [self.parent] + self.parent.parents()
def parents(self):
        assert self.parent is not self
        if self.parent is None:
            return []
        return [self.parent] + self.parent.parents()
def parents ( self ) : assert self . parent is not self if self . parent is None : return [ ] return [ self . parent ] + self . parent . parents ( )
return the ancestor nodes
return the ancestor nodes