'Converts list of trace dictionaries (as might be returned from
json results) to a string similar to a python backtrace.'

def browser_backtrace_to_string(self, backtrace):

    template = '        File    "%s",    line    %s,    in    %s'
    traces = []
    for trace in backtrace:
        traces.append((template % (trace['file'], trace['line'], trace['function'])))
    return '\n'.join(traces)
