def _get_portable_table_indexes_list(self, table_indexes, table_name):
        index_buffer = []

        # Fetch primary
        info = self._connection.select(table_name % 'PRAGMA TABLE_INFO (%s)')

        for row in info:
            if row['pk'] != 0:
                index_buffer.append({
                    'key_name': 'primary',
                    'primary': True,
                    'non_unique': False,
                    'column_name': row['name']
                })

        # Fetch regular indexes
        for index in table_indexes:
            # Ignore indexes with reserved names, e.g. autoindexes
            if index['name'].find('sqlite_') == -1:
                key_name = index['name']
                idx = {
                    'key_name': key_name,
                    'primary': False,
                    'non_unique': not bool(index['unique'])
                }

                info = self._connection.select('PRAGMA INDEX_INFO (\'%s\')' % key_name)
                for row in info:
                    idx['column_name'] = row['name']
                    index_buffer.append(idx)

        return super(SQLiteSchemaManager, self)._get_portable_table_indexes_list(index_buffer, table_name)
dataset/ETHPy150Open sdispater/orator/orator/dbal/sqlite_schema_manager.py/SQLiteSchemaManager._get_portable_table_indexes_list/swapped operands of `%`