| Index: appengine/findit/crash/fracas_parser.py
|
| diff --git a/appengine/findit/crash/fracas_parser.py b/appengine/findit/crash/fracas_parser.py
|
| index 51945713cc66003792e65786fbb0dd5b228ebe83..6bf80880a4861b4ebb4e55125b6ac75772dee550 100644
|
| --- a/appengine/findit/crash/fracas_parser.py
|
| +++ b/appengine/findit/crash/fracas_parser.py
|
| @@ -4,6 +4,7 @@
|
|
|
| import re
|
|
|
| +from common import constants
|
| from crash.callstack import CallStack
|
| from crash.callstack_filters import FilterFramesBeforeSignature
|
| from crash.stacktrace import Stacktrace
|
| @@ -14,15 +15,12 @@ from crash.type_enums import CallStackFormatType
|
| FRACAS_CALLSTACK_START_PATTERN = re.compile(r'CRASHED \[(.*) @ 0x(.*)\]')
|
|
|
|
|
| -_INFINITY_PRIORITY = 1000
|
| -
|
| -
|
| class FracasParser(StacktraceParser):
|
|
|
| def Parse(self, stacktrace_string, deps, signature=None):
|
| """Parse fracas stacktrace string into Stacktrace instance."""
|
| stacktrace = Stacktrace()
|
| - callstack = CallStack(_INFINITY_PRIORITY)
|
| + callstack = CallStack(constants.INFINITY)
|
|
|
| for line in stacktrace_string.splitlines():
|
| is_new_callstack, stack_priority, format_type = (
|
| @@ -31,14 +29,14 @@ class FracasParser(StacktraceParser):
|
| if is_new_callstack:
|
| # If the callstack is not the initial one or empty, add it
|
| # to stacktrace.
|
| - if callstack.priority != _INFINITY_PRIORITY and callstack:
|
| + if callstack.priority != constants.INFINITY and callstack:
|
| stacktrace.append(callstack)
|
|
|
| callstack = CallStack(stack_priority, format_type)
|
| else:
|
| callstack.ParseLine(line, deps)
|
|
|
| - if callstack.priority != _INFINITY_PRIORITY and callstack:
|
| + if callstack.priority != constants.INFINITY and callstack:
|
| stacktrace.append(callstack)
|
|
|
| # Filter all the frames before signature frame.
|
|
|