def _read_few_lines(self):
        res = []
        f = open(self._filename, 'rb')
        for line in f:
            line = line.strip().decode('utf-8')
            res.append(line)
            if len(res) > 20:
                break
        f.close()
        return res
dataset/ETHPy150Open enthought/mayavi/mayavi/tools/data_wizards/csv_sniff.py/Sniff._read_few_lines/original