Chromium Code Reviews| Index: drover.py |
| =================================================================== |
| --- drover.py (revision 113672) |
| +++ 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[0] |
| + branch = sorted_branches[len(sorted_branches) - 1] |
|
M-A Ruel
2011/12/08 22:41:19
The pythonic way is [-1]
|
| # If all keys match, the branch is the same for all platforms given |
| # |milestone|. This is the safe case, so return the branch. |