From 4df5a4d384d8833ea04c476b1b3b9e91b7d2d368 Mon Sep 17 00:00:00 2001 From: Muxi Yan Date: Tue, 10 Jul 2018 09:57:43 -0700 Subject: [PATCH] yapf_code --- tools/profiling/ios_bin/binary_size.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/profiling/ios_bin/binary_size.py b/tools/profiling/ios_bin/binary_size.py index 693b3c4d2ef..cde09023f20 100755 --- a/tools/profiling/ios_bin/binary_size.py +++ b/tools/profiling/ios_bin/binary_size.py @@ -113,8 +113,9 @@ for frameworks in [False, True]: text += row_format.format('New size', '', 'Old size') if old_size == None: for i in range(0, len(size_labels)): - text += ('\n' if i == len(size_labels) - 1 else '') + row_format.format( - '{:,}'.format(new_size[i]), size_labels[i], '') + text += ('\n' + if i == len(size_labels) - 1 else '') + row_format.format( + '{:,}'.format(new_size[i]), size_labels[i], '') else: has_diff = False for i in range(0, len(size_labels) - 1): @@ -125,9 +126,9 @@ for frameworks in [False, True]: else: diff_sign = ' (<)' has_diff = True - text += row_format.format( - '{:,}'.format(new_size[i]), size_labels[i] + diff_sign, - '{:,}'.format(old_size[i])) + text += row_format.format('{:,}'.format(new_size[i]), + size_labels[i] + diff_sign, '{:,}'.format( + old_size[i])) i = len(size_labels) - 1 if new_size[i] > old_size[i]: diff_sign = ' (>)'