Commit 589d4563 authored by Edward Lemur's avatar Edward Lemur Committed by Commit Bot

depot_tools: Run watchlists tests on Python 3

Bug: 1002209
Change-Id: I64aecc5e06be13237b73ae568a1beae046ba4962
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1925324Reviewed-by: 's avatarAnthony Polito <apolito@google.com>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
parent 2e2f5875
#!/usr/bin/env python
#!/usr/bin/env vpython3
# Copyright (c) 2011 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.
......
......@@ -121,8 +121,9 @@ class Watchlists(object):
if name not in self._watchlists:
continue
if rule.search(path):
map(watchers.add, self._watchlists[name])
return list(watchers)
for watchlist in self._watchlists[name]:
watchers.add(watchlist)
return sorted(watchers)
def main(argv):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment