

def select(self, **kwargs):
    try:
        self.get_conn()
        cur = conn.cursor()
        sql = 'SELECT  {columns} FROM {table} WHERE 1 {values}'.format(table=self.table_name, columns=', '.join(kwargs.keys()), values=' AND '.join(["{0} = '{1}'".format(col, str(kwargs[col])) for col in kwargs.keys()]))
        cur.execute(sql)
        return cur.fetchall()
    except sqlite3.Error as e:
        logging.error('Error selecting table {0}: {1}'.format(self.table_name, e.args[0]))
    finally:
        sql.close()

dataset/ETHPy150Open datamachine/telex/telex/DatabaseMixin.py DatabaseMixin.select/VarMisuse@139/193 `cur`->`sql`