From 3a5e3144af7fe395f9e4a569501a35ecb67248b3 Mon Sep 17 00:00:00 2001 From: Peter Wen Date: Thu, 27 Feb 2025 08:55:59 -0800 Subject: [PATCH] split_cl: Fix Emit-related warnings Encountered while using `git cl split`. Bug: None Change-Id: I8ecaf44a64a5917f50176b8d88e367731a6dee35 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6309324 Commit-Queue: Josip Sokcevic Reviewed-by: Josip Sokcevic Reviewed-by: Devon Loehr Auto-Submit: Peter Wen --- split_cl.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/split_cl.py b/split_cl.py index d77912a1d..23aafb6e2 100644 --- a/split_cl.py +++ b/split_cl.py @@ -346,7 +346,6 @@ def PrintClInfo(cl_index, num_cls, cl_description, file_paths, user_description, Emit('Topic: {}'.format(topic)) Emit('\n' + indented_description + '\n') Emit('\n'.join(file_paths)) - Emit() def LoadDescription(description_file, dry_run): @@ -370,7 +369,7 @@ def PrintSummary(cl_infos, refactor_branch): to the files and directories assigned to them. """ for info in cl_infos: - Emit(f'Reviewers: {info.reviewers}, files: {len(info.files)}, ', + Emit(f'Reviewers: {info.reviewers}, files: {len(info.files)}, ' f'description: {info.description}') num_cls = len(cl_infos)