def _byteshr(bytes):
    """Human-readable version of bytes count"""
    for x in ['bytes', 'KB', 'MB', 'GB', 'TB']:
        if bytes < 1024.0:
            return '%3.1f%s' % (bytes, x)
        bytes /= 1024.0
    raise ValueError('cannot find human-readable version')
