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

Unified Diff: appengine/findit/crash/changelist_classifier.py

Issue 2562623004: Making CallStack immutable, so it can be hashable (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: appengine/findit/crash/changelist_classifier.py
diff --git a/appengine/findit/crash/changelist_classifier.py b/appengine/findit/crash/changelist_classifier.py
index eb2abba2df226f7cd2c1ee16aadaa03c0228e2a7..f1a1d4446be7d45a6fccc438b164f2b4d6f93034 100644
--- a/appengine/findit/crash/changelist_classifier.py
+++ b/appengine/findit/crash/changelist_classifier.py
@@ -58,12 +58,12 @@ class ChangelistClassifier(namedtuple('ChangelistClassifier',
last_good_version, first_bad_version)
# Restrict analysis to just the top n frames in each callstack.
- # TODO(wrengr): move this to be a Stacktrace method?
+ # TODO(wrengr): use CallStack.SliceFrames
Martin Barbella 2016/12/08 22:30:55 Nit: end with period. Also, is there a reason not
wrengr 2016/12/08 23:42:37 Done. FWIW, most of the time when I'm making todo
stacktrace = Stacktrace([
CallStack(stack.priority,
format_type=stack.format_type,
language_type=stack.language_type,
- frame_list=stack[:self.top_n_frames])
+ frame_list=stack.frames[:self.top_n_frames])
for stack in report.stacktrace])
# We are only interested in the deps in crash stack (the callstack that

Powered by Google App Engine
This is Rietveld 408576698