From 2887b7d674fe19f66c1e67c8b7c5275bb2e98925 Mon Sep 17 00:00:00 2001 From: "jhawkins@chromium.org" Date: Fri, 9 Dec 2011 01:08:41 +0000 Subject: [PATCH] drover: Use Python style for accessing last item in array. Review URL: http://codereview.chromium.org/8883034 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@113720 0039d316-1c4b-4281-b951-d872f2087c98 --- drover.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drover.py b/drover.py index 8aa868f96..411dc02af 100755 --- a/drover.py +++ b/drover.py @@ -404,7 +404,7 @@ def getBranchForMilestone(milestone): # The following returns a sorted list of the keys of |branch_dict|. sorted_branches = sorted(branch_dict) - branch = sorted_branches[len(sorted_branches) - 1] + branch = sorted_branches[-1] # If all keys match, the branch is the same for all platforms given # |milestone|. This is the safe case, so return the branch.