def sizeof_fmt(num):
    for fmt in ['%3d bytes', '%3dK', '%3.1fM', '%3.1fG']:
        if num < 1024.0:
            return fmt % num
        num /= 1024.0
dataset/ETHPy150Open jdf/processing.py/examples.py/Topics/AdvancedData/directory_list.py/sizeof_fmt/original