diff options
author | Barry Warsaw <barry@python.org> | 2012-07-31 20:03:25 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2012-07-31 20:03:25 (GMT) |
commit | 9a5af1288deb62d975c044a45711cc179b5a2ad1 (patch) | |
tree | 767b3a8dc1a144e66cc1e476ddd50a0a8e5cfb92 /Lib/idlelib/PyShell.py | |
parent | dadebab42c87e29342de67501a6b280e547fb633 (diff) | |
parent | 233f6845b3f3498d800b429c4e8d84abcb5726b7 (diff) | |
download | cpython-9a5af1288deb62d975c044a45711cc179b5a2ad1.zip cpython-9a5af1288deb62d975c044a45711cc179b5a2ad1.tar.gz cpython-9a5af1288deb62d975c044a45711cc179b5a2ad1.tar.bz2 |
merge
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r-- | Lib/idlelib/PyShell.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index e0b8c29..50d6182 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -248,8 +248,8 @@ class PyShellEditorWindow(EditorWindow): def ranges_to_linenumbers(self, ranges): lines = [] for index in range(0, len(ranges), 2): - lineno = int(float(ranges[index])) - end = int(float(ranges[index+1])) + lineno = int(float(ranges[index].string)) + end = int(float(ranges[index+1].string)) while lineno < end: lines.append(lineno) lineno += 1 |