Skip to content

Commit 91e193f

Browse files
authored
Fix readline._get_idxs: use range() instead of xrange() (#14)
1 parent e8061b0 commit 91e193f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyrepl/readline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def get_line_buffer(self):
365365
def _get_idxs(self):
366366
start = cursor = self.get_reader().pos
367367
buf = self.get_line_buffer()
368-
for i in xrange(cursor - 1, -1, -1):
368+
for i in range(cursor - 1, -1, -1):
369369
if buf[i] in self.get_completer_delims():
370370
break
371371
start = i

0 commit comments

Comments
 (0)