Delete the breakpoint from the list associated to a file:line. If it is the last breakpoint in that position, it also deletes the entry for the file:line.
(self)
| 708 | Breakpoint.bpbynumber = [None] |
| 709 | |
| 710 | def deleteMe(self): |
| 711 | """Delete the breakpoint from the list associated to a file:line. |
| 712 | |
| 713 | If it is the last breakpoint in that position, it also deletes |
| 714 | the entry for the file:line. |
| 715 | """ |
| 716 | |
| 717 | index = (self.file, self.line) |
| 718 | self.bpbynumber[self.number] = None # No longer in list |
| 719 | self.bplist[index].remove(self) |
| 720 | if not self.bplist[index]: |
| 721 | # No more bp for this f:l combo |
| 722 | del self.bplist[index] |
| 723 | |
| 724 | def enable(self): |
| 725 | """Mark the breakpoint as enabled.""" |
no test coverage detected