From 4ec3fd3659ccd4fc7e1f977ee9361caf38635e91 Mon Sep 17 00:00:00 2001 From: Takuto Ikuta Date: Fri, 5 Mar 2021 06:02:58 +0000 Subject: [PATCH] Revert "Modify fix_encodng to make it use fix_win_sys_argv for python2 only and" This reverts commit 20815505e6008a33adec35bad46e589d4a8386cb. Reason for revert: This is not necessary after https://crrev.com/c/1929653 Original change's description: > Modify fix_encodng to make it use fix_win_sys_argv for python2 only and > not for python3 on windows. > > The function works around , and the bug is fixed for python3 now. > > Bug: 1182016 > Change-Id: I3880843b109d5b9779e5bbd1e39a3132f925ecc4 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2738234 > Commit-Queue: Momo Sasaki > Reviewed-by: Dirk Pranke > Reviewed-by: Junji Watanabe > Reviewed-by: Takuto Ikuta Bug: 1182016 Change-Id: I153640b174a78990e39b3597208b6785003ca321 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2738936 Reviewed-by: Junji Watanabe Bot-Commit: Rubber Stamper Commit-Queue: Takuto Ikuta --- fix_encoding.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fix_encoding.py b/fix_encoding.py index ce4bccc895..1d84750e73 100644 --- a/fix_encoding.py +++ b/fix_encoding.py @@ -380,7 +380,6 @@ def fix_encoding(): if sys.platform == 'win32': encoding = sys.getdefaultencoding() - if sys.version_info[0] == 2: - ret &= fix_win_sys_argv(encoding) + ret &= fix_win_sys_argv(encoding) ret &= fix_win_console(encoding) return ret