py3: fix xrange/print in test/kv

This commit is contained in:
Mathieu Virbel 2012-12-29 15:13:58 +01:00 committed by Dusty Phillips
parent d36e92459e
commit 446d6ff8c6
2 changed files with 4 additions and 4 deletions

View File

@ -154,8 +154,8 @@ class LangTestCase(unittest.TestCase):
Builder.load_string('''
<TestClass>:
on_press:
print 'hello world'
print 'this is working !'
print('hello world')
print('this is working !')
self.a = 1
''')
wid = TestClass()

View File

@ -150,7 +150,7 @@ class ListViewTestCase(unittest.TestCase):
ListView:
id: lvm
size_hint: .8,.8
item_strings: ["Item #{0}".format(i) for i in xrange(100)]
item_strings: ["Item #{0}".format(i) for i in range(100)]
""")
class ListViewModal(ModalView):
@ -184,7 +184,7 @@ class ListViewTestCase(unittest.TestCase):
size_hint: .8,.8
adapter:
sla.SimpleListAdapter(
data=["Item #{0}".format(i) for i in xrange(100)],
data=["Item #{0}".format(i) for i in range(100)],
cls=label.Label)
""")