def bytes2human(nbytes, ndigits=0):
    abs_bytes = abs(nbytes)
    for (size, symbol), (next_size, next_symbol) in _SIZE_RANGES:
        if abs_bytes <= next_size:
            break
    hnbytes = float(nbytes) / size
    return '{hnbytes:.{ndigits}f}{symbol}'.format(hnbytes=hnbytes,
                                                  ndigits=ndigits,
                                                  symbol=symbol)
CORS Specification Section 6.2.4
dataset/ETHPy150Open mahmoud/clastic/clastic/contrib/webtop/top.py/bytes2human--crossover with--dataset/ETHPy150Open openstack/oslo.middleware/oslo_middleware/tests/test_cors.py/CORSPreflightRequestTest.test_request_headers