def SizeToReadableString(filesize):
 for x in ['bytes', 'KiB', 'MiB', 'GiB', 'TiB']:
  if (filesize < 1000.0):
   return ('%3.1f %s' % (filesize, x))
  filesize /= 1000.0

def SizeToReadableString ( filesize ) : for x in [ 'bytes' , 'KiB' , 'MiB' , 'GiB' , 'TiB' ] : if ( filesize < 1000.0 ) : return ( '%3.1f %s' % ( filesize , x ) ) filesize /= 1000.0
turn a filesize int into a human readable filesize .