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: