From 488712ab5735c18de8827b7dff7b6f4f0d904306 Mon Sep 17 00:00:00 2001 From: Edward Lemur Date: Fri, 28 Feb 2020 00:46:05 +0000 Subject: [PATCH] my_activity.py: Run using vpython3 by default. Also, prompt users to use vpython3 when running my_activity.py using Python 2. Change-Id: I078517832520b3c7baf3324f83e9a3b5194a5bcb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2079703 Reviewed-by: Josip Sokcevic Commit-Queue: Edward Lesmes --- my_activity.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/my_activity.py b/my_activity.py index b4be6fd204..0904b2c0a9 100755 --- a/my_activity.py +++ b/my_activity.py @@ -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