def get_statements(self):
        """Returns a list of SQL statements as strings, stripped"""
        statements = []
        for statement in self._parsed:
            if statement:
                sql = str(statement).strip(' \n;\t')
                if sql:
                    statements.append(sql)
        return statements
def get_statements ( self ) : statements = [ ] for statement in self . _parsed : if statement : sql = str ( statement ) . strip ( ' \n;\t' ) if sql : statements . append ( sql ) return statements
Returns a list of SQL statements as strings, stripped