| 140 |
| 141 |
| 142 |
| 143 |
| 144 |
| 145 |
| 146 |
| 147 |
| 148 |
| 149 |
| 150 | |
def filter(self, fn=lambda x: not x.ishidden()): |
""" return a Traceback instance with certain items removed |
|
fn is a function that gets a single argument, a TracebackItem |
instance, and should return True when the item should be added |
to the Traceback, False when not |
|
by default this removes all the TracebackItems which are hidden |
(see ishidden() above) |
""" |
-> return Traceback(filter(fn, self)) | |