Prune breakpoints for filename:lineno. A list of breakpoints is maintained in the Bdb instance and in the Breakpoint class. If a breakpoint in the Bdb instance no longer exists in the Breakpoint class, then it's removed from the Bdb instance.
(self, filename, lineno)
| 401 | self._add_to_breaks(filename, lineno) |
| 402 | |
| 403 | def _prune_breaks(self, filename, lineno): |
| 404 | """Prune breakpoints for filename:lineno. |
| 405 | |
| 406 | A list of breakpoints is maintained in the Bdb instance and in |
| 407 | the Breakpoint class. If a breakpoint in the Bdb instance no |
| 408 | longer exists in the Breakpoint class, then it's removed from the |
| 409 | Bdb instance. |
| 410 | """ |
| 411 | if (filename, lineno) not in Breakpoint.bplist: |
| 412 | self.breaks[filename].remove(lineno) |
| 413 | if not self.breaks[filename]: |
| 414 | del self.breaks[filename] |
| 415 | |
| 416 | def clear_break(self, filename, lineno): |
| 417 | """Delete breakpoints for filename:lineno. |
no test coverage detected