From 4f50adb3325cbc0eb19ad3d94fd63a3dc4418817 Mon Sep 17 00:00:00 2001 From: Weilun Shi Date: Tue, 17 Jan 2023 20:43:17 +0000 Subject: [PATCH] Remove the one-linear check for the validate_prefix file The validate_prefix file is now rolled out on prod so we don't need that check any more. Bug: 1116488 Change-Id: Ibbbfd29366e3e41d8e52d65dd7553f2e521ffd63 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4167358 Commit-Queue: Gavin Mak Auto-Submit: Weilun Shi Commit-Queue: Weilun Shi Reviewed-by: Gavin Mak --- git_cl.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/git_cl.py b/git_cl.py index 0e2793ff6..a1bbbeb39 100755 --- a/git_cl.py +++ b/git_cl.py @@ -5648,14 +5648,8 @@ def CMDformat(parser, args): # $ python pretty_print.py metadata/UMA/histograms.xml # $ python pretty_print.py enums.xml - # TODO (crbug/1116488): Remove this check after ensuring that the updated - # version of histograms/pretty_print.py is released. - filepath_required = os.path.exists( - os.path.join(tool_dir, 'validate_prefix.py')) - if (diff_xml.endswith('histograms.xml') or diff_xml.endswith('enums.xml') - or diff_xml.endswith('histogram_suffixes_list.xml') - ) and filepath_required: + or diff_xml.endswith('histogram_suffixes_list.xml')): cmd.append(diff_xml) if opts.dry_run or opts.diff: