Get rid of comments starting with --

def _filtercomment(
            self,
            sql):
        "Get rid of comments starting with --"
        import os
        fsql = ''
        for line in sql.split('\n'):
            fsql += line.split('--')[0] + ' ' + os.linesep
        return fsql