python-modernize -f libmodernize.fixes.fix_xrange_six

This commit is contained in:
Tomas Kopecek 2017-05-03 11:21:12 +02:00
parent 0ded2a44a9
commit 7f946b37be
16 changed files with 52 additions and 20 deletions

View file

@ -1,9 +1,11 @@
from __future__ import absolute_import
import unittest
import koji
import sys
import threading
import traceback
from six.moves import range
class ProfilesTestCase(unittest.TestCase):
@ -14,7 +16,7 @@ class ProfilesTestCase(unittest.TestCase):
# loop a few times to increase chances of hitting race conditions
for i in range(20):
errors = {}
threads = [threading.Thread(target=stress, args=(errors, _)) for _ in xrange(100)]
threads = [threading.Thread(target=stress, args=(errors, _)) for _ in range(100)]
for t in threads:
t.start()
for t in threads: