Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(575)

Unified Diff: drover.py

Issue 8883034: drover: Use Python style for accessing last item in array. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: drover.py
===================================================================
--- drover.py (revision 113696)
+++ drover.py (working copy)
@@ -404,7 +404,7 @@
# 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.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698