Commit a67763c1 authored by Łukasz Nowak's avatar Łukasz Nowak

test: xrange is not python3

parent baf467c6
...@@ -67,7 +67,7 @@ def retry(callback, try_count=10, try_delay=0.1): ...@@ -67,7 +67,7 @@ def retry(callback, try_count=10, try_delay=0.1):
a true value. a true value.
Always returns the value returned by latest callback invocation. Always returns the value returned by latest callback invocation.
""" """
for _ in xrange(try_count): for _ in range(try_count):
result = callback() result = callback()
if result: if result:
break break
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment