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

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

Issue 2557423003: Making Stacktrace immutable, so it can be hashable (Closed)
Patch Set: rebase 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
« no previous file with comments | « no previous file | appengine/findit/crash/stacktrace.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/crash/crash_report.py
diff --git a/appengine/findit/crash/crash_report.py b/appengine/findit/crash/crash_report.py
index db622caeaeb35c13d8a94f16a5263f68a3305551..d9ccec0d47517f8fd6b9a1cde82a0c94e7a572ea 100644
--- a/appengine/findit/crash/crash_report.py
+++ b/appengine/findit/crash/crash_report.py
@@ -35,8 +35,7 @@ class CrashReport(namedtuple('CrashReport',
def __new__(cls, crashed_version, signature, platform, stacktrace,
regression_range):
- # TODO: should raise a TypeError rather than an AssertionError
- assert isinstance(stacktrace, Stacktrace), (
+ assert isinstance(stacktrace, Stacktrace), TypeError(
'In the fourth argument to CrashReport constructor, '
'expected Stacktrace object, but got %s object instead.'
% stacktrace.__class__.__name__)
« no previous file with comments | « no previous file | appengine/findit/crash/stacktrace.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698