def humanize_bytes(val, precision=1):
    abbrevs = (
        (1<<50L, 'PB'),
        (1<<40L, 'TB'),
        (1<<30L, 'GB'),
        (1<<20L, 'MB'),
        (1<<10L, 'KB'),
        (1, 'bytes')
    )
    if val == 1:
        return '1 byte'
    for factor, suffix in abbrevs:
        if math.fabs(val) > factor:
            break
    return '%.*f %s' % (precision, val / factor, suffix)
dataset/ETHPy150Open pycollada/meshtool/meshtool/filters/print_filters/print_render_info.py/humanize_bytes/operator `>=` -> `>`