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 <gavinmak@google.com>
Auto-Submit: Weilun Shi <sweilun@chromium.org>
Commit-Queue: Weilun Shi <sweilun@chromium.org>
Reviewed-by: Gavin Mak <gavinmak@google.com>
changes/58/4167358/2
Weilun Shi 2 years ago committed by LUCI CQ
parent 7879da9e9d
commit 4f50adb332

@ -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:

Loading…
Cancel
Save