Mercurial > cpython-lru_cache-weakref
comparison Lib/idlelib/PyShell.py @ 78349:28c935ded243
Issue #9803: Don't close IDLE on saving if breakpoint is open.
Patch by Roger Serwy.
| author | Andrew Svetlov <andrew.svetlov@gmail.com> |
|---|---|
| date | Tue, 31 Jul 2012 19:49:38 +0300 |
| parents | 1da53d86d722 47536beb7453 |
| children | 3f3b72ab9d65 0430986a8c03 |
comparison
equal
deleted
inserted
replaced
| 78347:07ddf5ecaafa | 78349:28c935ded243 |
|---|---|
| 246 self.breakpoints = linenumber_list | 246 self.breakpoints = linenumber_list |
| 247 | 247 |
| 248 def ranges_to_linenumbers(self, ranges): | 248 def ranges_to_linenumbers(self, ranges): |
| 249 lines = [] | 249 lines = [] |
| 250 for index in range(0, len(ranges), 2): | 250 for index in range(0, len(ranges), 2): |
| 251 lineno = int(float(ranges[index])) | 251 lineno = int(float(ranges[index].string)) |
| 252 end = int(float(ranges[index+1])) | 252 end = int(float(ranges[index+1].string)) |
| 253 while lineno < end: | 253 while lineno < end: |
| 254 lines.append(lineno) | 254 lines.append(lineno) |
| 255 lineno += 1 | 255 lineno += 1 |
| 256 return lines | 256 return lines |
| 257 | 257 |
