From a04028c2e67b6d7554f8114de97c52507052c6fc Mon Sep 17 00:00:00 2001 From: Raul Tambre Date: Mon, 13 May 2019 17:23:36 +0000 Subject: [PATCH] Fix invalid Python file encoding "utf8" Since Python 3 it must be "utf-8", which is the official name. This is backwards compatible with Python 2. Bug: 962277 Change-Id: I21115a322944532f1870862c8c048f8455c1109f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1608562 Auto-Submit: Raul Tambre Commit-Queue: Robbie Iannucci Reviewed-by: Robbie Iannucci --- checkout.py | 2 +- patch.py | 2 +- subprocess2.py | 2 +- tests/fix_encoding_test.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/checkout.py b/checkout.py index 2bcf98492..7e91afcb9 100644 --- a/checkout.py +++ b/checkout.py @@ -1,4 +1,4 @@ -# coding=utf8 +# coding=utf-8 # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/patch.py b/patch.py index 63209bb1f..4084ffdf5 100644 --- a/patch.py +++ b/patch.py @@ -1,4 +1,4 @@ -# coding=utf8 +# coding=utf-8 # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/subprocess2.py b/subprocess2.py index 205e284af..785eb1909 100644 --- a/subprocess2.py +++ b/subprocess2.py @@ -1,4 +1,4 @@ -# coding=utf8 +# coding=utf-8 # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/tests/fix_encoding_test.py b/tests/fix_encoding_test.py index a0ca8ffee..9f8985fc1 100755 --- a/tests/fix_encoding_test.py +++ b/tests/fix_encoding_test.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# coding=utf8 +# coding=utf-8 # Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file.