From f82b08b1e252a4b1824e3b62f370209541213355 Mon Sep 17 00:00:00 2001 From: Liviu Rau Date: Tue, 16 Jun 2020 16:17:24 +0000 Subject: [PATCH] Revert "Support formatting python3 scripts" This reverts commit 2ba05f1672dc958412ab29fa994c722bfca1cff0. Reason for revert: yapf formatting broken on windows https://crbug.com/1095581 Change-Id: Ifad1009ab8d83a05cd5763bb95910647940cbaf1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2246152 Commit-Queue: Edward Lesmes Reviewed-by: Edward Lesmes --- git_cl.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/git_cl.py b/git_cl.py index 49a9f12aa..fe92b2cc3 100755 --- a/git_cl.py +++ b/git_cl.py @@ -4931,13 +4931,7 @@ def CMDformat(parser, args): if not yapf_style: yapf_style = 'pep8' - with open(f, 'r') as py_f: - if 'python3' in py_f.readline(): - vpython_script = 'vpython3' - else: - vpython_script = 'vpython' - - cmd = [vpython_script, yapf_tool, '--style', yapf_style, f] + cmd = [yapf_tool, '--style', yapf_style, f] has_formattable_lines = False if not opts.full: