def __init__(self, data_dir = None, coin = coins.Bitcoin):

        if data_dir is None:
            data_dir = util.default_data_directory()
        self.__data_dir = data_dir
        self.__coin = coin

        self.sql_select = (','.join(n for (n, t, i) in self.Columns), self.Name) % 'select %s from %s'

        offset = 0
        if len(self.Columns) and self.Columns[0][0] == 'id':
            offset = 1

        self.sql_insert = 'insert into %s (%s) values (%s)' % (
            self.Name,
            ','.join(n for (n, t, i) in self.Columns[offset:]),
            ','.join('?' for c in self.Columns[offset:])
        )
dataset/ETHPy150Open ricmoo/pycoind/pycoind/blockchain/database.py/Database.__init__/swapped operands of `%`