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)
| 1021 | Breakpoint.bpbynumber = [None] |
| 1022 | |
| 1023 | def deleteMe(self): |
| 1024 | """Delete the breakpoint from the list associated to a file:line. |
| 1025 | |
| 1026 | If it is the last breakpoint in that position, it also deletes |
| 1027 | the entry for the file:line. |
| 1028 | """ |
| 1029 | |
| 1030 | index = (self.file, self.line) |
| 1031 | self.bpbynumber[self.number] = None # No longer in list |
| 1032 | self.bplist[index].remove(self) |
| 1033 | if not self.bplist[index]: |
| 1034 | # No more bp for this f:l combo |
| 1035 | del self.bplist[index] |
| 1036 | |
| 1037 | def enable(self): |
| 1038 | """Mark the breakpoint as enabled.""" |
no test coverage detected