def handle(self, filepath, cols):
        credentials = []
        with open(filepath) as csv_file:
            reader = unicode_csv_reader(csv_file)
            try:
                next(reader)
            except __HOLE__:
                raise ValueError('empty csv file: %s' % filepath)
            for row in reader:
                credential = {
                    'name': row[cols['name']],
                    'login': row[cols.get('login', '')],
                    'password': row[cols['password']],
                    'comment': row[cols.get('comment', '')],
                }
                credentials.append(credential)
        return credentials
dataset/ETHPy150Open marcwebbie/passpie/passpie/importers/csv_importer.py/CSVImporter.handle