diff options
author | 2015-04-19 18:03:46 +0200 | |
---|---|---|
committer | 2015-04-19 18:03:46 +0200 | |
commit | e1c22fad3fffb485da400e4b34c094f201a2c72e (patch) | |
tree | d360610cdf65e2f1906d3cc9c891f6b80066859d /tests/APIExerciser.py | |
parent | PEP-8, Python Zen, refactor and reduce code (part 7 in master module/database) (diff) | |
download | pyload-e1c22fad3fffb485da400e4b34c094f201a2c72e.tar.xz |
range -> xrange
Diffstat (limited to 'tests/APIExerciser.py')
-rw-r--r-- | tests/APIExerciser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/APIExerciser.py b/tests/APIExerciser.py index d7300b1a5..f4b082479 100644 --- a/tests/APIExerciser.py +++ b/tests/APIExerciser.py @@ -17,7 +17,7 @@ from pyload.remote.thriftbackend.ThriftClient import ThriftClient, Destination def createURLs(): """ create some urls, some may fail """ urls = [] - for x in range(0, randint(20, 100)): + for x in xrange(0, randint(20, 100)): name = "DEBUG_API" if randint(0, 5) == 5: name = "" #: this link will fail @@ -34,7 +34,7 @@ sumCalled = 0 def startApiExerciser(core, n): - for _i in range(n): + for _i in xrange(n): APIExerciser(core).start() |