equal
deleted
inserted
replaced
3157 results = [] |
3157 results = [] |
3158 for source, hook in self._hooks: |
3158 for source, hook in self._hooks: |
3159 results.append(hook(*args)) |
3159 results.append(hook(*args)) |
3160 return results |
3160 return results |
3161 |
3161 |
3162 def getstackframes(skip=0, line=' %-*s in %s\n', fileline='%s:%s', depth=0): |
3162 def getstackframes(skip=0, line=' %-*s in %s\n', fileline='%s:%d', depth=0): |
3163 '''Yields lines for a nicely formatted stacktrace. |
3163 '''Yields lines for a nicely formatted stacktrace. |
3164 Skips the 'skip' last entries, then return the last 'depth' entries. |
3164 Skips the 'skip' last entries, then return the last 'depth' entries. |
3165 Each file+linenumber is formatted according to fileline. |
3165 Each file+linenumber is formatted according to fileline. |
3166 Each line is formatted according to line. |
3166 Each line is formatted according to line. |
3167 If line is None, it yields: |
3167 If line is None, it yields: |