Permalink
Browse files

Use range instead of xrange in test_termboxmodule.py.

Makes it python3 compatible.
  • Loading branch information...
1 parent d4b7352 commit 926e9e1772b807c81b7c1cd4fe14964c72c1229c @nsf committed Apr 26, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 test_termboxmodule.py
@@ -15,7 +15,7 @@ def print_line(t, msg, y, fg, bg):
w = t.width()
l = len(msg)
x = 0
- for i in xrange(w):
+ for i in range(w):
c = spaceord
if i < l:
c = ord(msg[i])
@@ -88,7 +88,7 @@ def draw_bottom_line(t, i):
w = t.width()
h = t.height()
c = i
- for x in xrange(w):
+ for x in range(w):
t.change_cell(x, h-1, ord(u' '), termbox.BLACK, c)
t.change_cell(x, h-2, ord(u' '), termbox.BLACK, c)
c += 1

0 comments on commit 926e9e1

Please sign in to comment.