[gedit-plugins/gnome-3-8] range() is an iterable in python 3.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins/gnome-3-8] range() is an iterable in python 3.
- Date: Fri, 26 Apr 2013 19:56:14 +0000 (UTC)
commit ef983d052e1e32088e58e7b0a2a8fc9685e5513f
Author: Ashley Milsted <ashmilsted gmail com>
Date: Fri Apr 26 18:46:16 2013 +0200
range() is an iterable in python 3.
plugins/synctex/synctex/synctex.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/synctex/synctex/synctex.py b/plugins/synctex/synctex/synctex.py
index d5ac9dc..a80969e 100644
--- a/plugins/synctex/synctex/synctex.py
+++ b/plugins/synctex/synctex/synctex.py
@@ -115,7 +115,7 @@ class SynctexViewHelper:
file_output = None
line_count = self._doc.get_line_count()
- for i in range(min(3,line_count)) + range(max(0,line_count - 3), line_count):
+ for i in list(range(min(3,line_count))) + list(range(max(0,line_count - 3), line_count)):
start = self._doc.get_iter_at_line(i)
end = start.copy()
end.forward_to_line_end()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]