(zoom, out)
Write a zoom level to a file descriptor.
Write a zoom level to a file descriptor.
Write a zoom level to a file descriptor .
def write_zoom_level(zoom, out):
    """Write a zoom level to a file descriptor."""
    level = bytearray([255] * 256)
    for i, v in enumerate(filter(lambda x: x != None, zoom)):
        level[i] = v
    out.write(level)
def write_zoom_level ( zoom , out ) : level = bytearray ( [ 255 ] * 256 ) for i , v in enumerate ( filter ( lambda x : x != None , zoom ) ) : level [ i ] = v out . write ( level )