From 0b98e7c063a0c47b90d45a4f174c951a2ab008ab Mon Sep 17 00:00:00 2001 From: Takuto Ikuta Date: Thu, 16 Nov 2023 06:56:28 +0000 Subject: [PATCH] fix for long line warnings This is preparation CL for https://crrev.com/c/5035265. Change-Id: I9ab8ffed471d3813a0e94bbdb47bf95e3bb46337 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5036119 Commit-Queue: Philipp Wollermann Reviewed-by: Philipp Wollermann Auto-Submit: Takuto Ikuta --- post_build_ninja_summary.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/post_build_ninja_summary.py b/post_build_ninja_summary.py index f496db534..e05cb9841 100755 --- a/post_build_ninja_summary.py +++ b/post_build_ninja_summary.py @@ -121,8 +121,8 @@ def ReadTargets(log, show_all): # targets. if not header: return [] - assert header == '# ninja log v5\n', \ - 'unrecognized ninja log version %r' % header + assert header == '# ninja log v5\n', ('unrecognized ninja log version %r' % + header) targets_dict = {} last_end_seen = 0.0 for line in log: @@ -165,9 +165,9 @@ def ReadTargets(log, show_all): def GetExtension(target, extra_patterns): """Return the file extension that best represents a target. - For targets that generate multiple outputs it is important to return a - consistent 'canonical' extension. Ultimately the goal is to group build steps - by type.""" + For targets that generate multiple outputs it is important to return a + consistent 'canonical' extension. Ultimately the goal is to group build + steps by type.""" for output in target.targets: if extra_patterns: for fn_pattern in extra_patterns.split(';'):