| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2014 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 import logging | 5 import logging |
| 6 import re | 6 import re |
| 7 | 7 |
| 8 from threading import Lock | 8 from threading import Lock |
| 9 | 9 |
| 10 import crash_utils | 10 import crash_utils |
| 11 | 11 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 self.codereview_api_url = codereview_api_url | 119 self.codereview_api_url = codereview_api_url |
| 120 self.matches = {} | 120 self.matches = {} |
| 121 self.cls_to_ignore = set() | 121 self.cls_to_ignore = set() |
| 122 self.matches_lock = Lock() | 122 self.matches_lock = Lock() |
| 123 | 123 |
| 124 def RemoveRevertedCLs(self): | 124 def RemoveRevertedCLs(self): |
| 125 """Removes CLs that are revert.""" | 125 """Removes CLs that are revert.""" |
| 126 for cl in self.matches: | 126 for cl in self.matches: |
| 127 if cl in self.cls_to_ignore: | 127 if cl in self.cls_to_ignore: |
| 128 del self.matches[cl] | 128 del self.matches[cl] |
| OLD | NEW |