def humanize_size(size):
	"""
	Return the file size as a nice, readable string.
	"""
	for limit, suffix in ((1024**3, 'GiB'), (1024**2, 'MiB'), (1024, 'KiB'), (1, 'B')):
		hsize = float(size) / limit
		if hsize > 0.5:
			return '%.2f %s' % (hsize, suffix)