def _get_filtered_stmts(self, lookup_node, node, stmts, mystmt):
        """method used in filter_stmts"""
        if self is mystmt:
            if isinstance(lookup_node, (Const, Name)):
                return [lookup_node], True

        elif self.statement() is mystmt:
            # original node's statement is the assignment, only keeps
            # current node (gen exp, list comp)

            return [node], True

        return stmts, False
def _get_filtered_stmts ( self , lookup_node , node , stmts , mystmt ) : if self is mystmt : if isinstance ( lookup_node , ( Const , Name ) ) : return [ lookup_node ] , True elif self . statement ( ) is mystmt : return [ node ] , True return stmts , False
method used in filter_stmts