def readLines(self, path):
    f = codecs.open(path, 'r', 'utf-8_sig')
    line = f.readline()
    while line:
        if isValidLine(line):
            self.lines.append(line.strip(os.linesep))
        line = f.readline()
    f.close()
def readLines(self, path):
    f = codecs.open(path, 'r', 'utf-8_sig')
    line = f.readline()
    while line:
        if isValidLine(line):
            self.lines.append(line.strip(os.linesep))
        line = f.readline()
    f.close()