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