Skip to content

Commit c277eb6

Browse files
committed
xrange no longer exists in Python 3.
range now behaves like xrange did in Python 2. http://docs.python.org/3.1/whatsnew/3.0.html
1 parent 562a573 commit c277eb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

annotate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def annotate(self, diff):
115115
if change_type == '-':
116116
full_region = self.view.full_line(self.view.text_point(line - 1, 0))
117117
position = full_region.begin()
118-
for i in xrange(full_region.size()):
118+
for i in range(full_region.size()):
119119
typed_diff[change_type].append(sublime.Region(position + i))
120120
else:
121121
point = self.view.text_point(line, 0)

0 commit comments

Comments
 (0)