mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
Reland "my_activity.py: Run using vpython3 by default."
Fix issue with gerrit_util.py and add tests. Change-Id: Ie523ea59ddb93cf5c7fa35f3761310ce96747720 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2081092 Reviewed-by: Anthony Polito <apolito@google.com> Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env vpython
|
||||
#!/usr/bin/env vpython3
|
||||
# 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.
|
||||
@@ -46,6 +46,8 @@ import gerrit_util
|
||||
|
||||
|
||||
if sys.version_info.major == 2:
|
||||
logging.warning(
|
||||
'Python 2 is deprecated. Run my_activity.py using vpython3.')
|
||||
import urllib as urllib_parse
|
||||
else:
|
||||
import urllib.parse as urllib_parse
|
||||
|
||||
Reference in New Issue
Block a user