def print_files_colored(files, color, size=False): for i in sorted(files): with self.ui.colored(color) as color_print: color_print(' ' + i.path) if size: self.ui.out(' %s' % pretty_bytes(i.size)) self.ui.out('\n')
def bytes_msg(): return ("Transferring... up: %s, down: %s" % (pretty_bytes(bytes_count['up']), pretty_bytes(bytes_count['down'])))
def bytes_msg(): return ("Transferring... up: %s, down: %s" % (pretty_bytes( bytes_count['up']), pretty_bytes(bytes_count['down'])))