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

Side by Side Diff: tools/findit/blame.py

Issue 465403004: [Findit] Support sending cookies for http requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit. Created 6 years, 4 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 | tools/findit/cacert.pem » ('j') | tools/findit/common/utils.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 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 from threading import Lock, Thread 5 from threading import Lock, Thread
6 6
7 import utils 7 from common import utils
8 8
9 9
10 class Blame(object): 10 class Blame(object):
11 """Represents a blame object. 11 """Represents a blame object.
12 12
13 The object contains blame information for one line of stack, and this 13 The object contains blame information for one line of stack, and this
14 information is shown when there are no CLs that change the crashing files. 14 information is shown when there are no CLs that change the crashing files.
15 Attributes: 15 Attributes:
16 line_content: The content of the line to find the blame for. 16 line_content: The content of the line to find the blame for.
17 component_name: The name of the component for this line. 17 component_name: The name of the component for this line.
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 if blame.range_start and blame.range_end: 153 if blame.range_start and blame.range_end:
154 154
155 # Discards results that are after the end of regression. 155 # Discards results that are after the end of regression.
156 if not utils.IsGitHash(blame.revision) and ( 156 if not utils.IsGitHash(blame.revision) and (
157 int(blame.revision) < int(blame.range_end)): 157 int(blame.revision) < int(blame.range_end)):
158 continue 158 continue
159 159
160 filtered_blame_list.append(blame) 160 filtered_blame_list.append(blame)
161 161
162 self.blame_list = filtered_blame_list 162 self.blame_list = filtered_blame_list
OLDNEW
« no previous file with comments | « no previous file | tools/findit/cacert.pem » ('j') | tools/findit/common/utils.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698