'Return size of C{format} for book C{index} in bytes'

def sizeof_format(self, index, format, index_is_id=False):

    id = (index if index_is_id else self.id(index))
    format = format.upper()
    return self.conn.get('SELECT    uncompressed_size    FROM    data    WHERE    data.book=?    AND    data.format=?', (id, format), all=False)
