def data(self, index, role):
        if not self._rows or not index.isValid() or not role in [Qt.DisplayRole, Qt.UserRole, Qt.EditRole] or index.row() >= len(self._rows) or index.column() >= len(self._rows[index.row()]):
            return None

        data = self._rows[index.row()][index.column()]
        try:
            data = "NULL" if data is None else unicode(data)
        except UnicodeDecodeError:
            data = "BLOB"
        return data
dataset/ETHPy150Open mtorromeo/sqlantaresia/sqlantaresia/QPySqlModels.py/QPySelectModel.data/original