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

Side by Side Diff: owners.py

Issue 10383038: Fix crash in owners.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 8 years, 7 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """A database of OWNERS files.""" 5 """A database of OWNERS files."""
6 6
7 import collections 7 import collections
8 import re 8 import re
9 9
10 10
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 # If no more directories have OWNERS, we're done. 209 # If no more directories have OWNERS, we're done.
210 if not max_owner: 210 if not max_owner:
211 break 211 break
212 212
213 final_owners.add(max_owner) 213 final_owners.add(max_owner)
214 214
215 # Remove all directories owned by the current owner from the remaining 215 # Remove all directories owned by the current owner from the remaining
216 # list. 216 # list.
217 for dirname in owned_dirs[max_owner]: 217 for dirname in owned_dirs[max_owner]:
218 dirs.remove(dirname) 218 if dirname in dirs:
219 dirs.remove(dirname)
219 220
220 return final_owners 221 return final_owners
OLDNEW
« 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