Apply Python 3 futurize transform libmodernize.fixes.fix_xrange_six

Refer to #256
This commit is contained in:
Eklavya Sharma 2016-03-10 23:13:31 +05:30 committed by Tim Abbott
parent f4643de011
commit 7ccd60584a

View file

@ -1,5 +1,6 @@
#!/usr/bin/env python2.7 #!/usr/bin/env python2.7
from __future__ import print_function from __future__ import print_function
from __future__ import absolute_import
import sys import sys
import time import time
import optparse import optparse
@ -8,6 +9,7 @@ import random
import logging import logging
import subprocess import subprocess
import hashlib import hashlib
from six.moves import range
parser = optparse.OptionParser() parser = optparse.OptionParser()
parser.add_option('--verbose', parser.add_option('--verbose',
@ -150,7 +152,7 @@ for (stream, test) in test_streams:
zephyr_subs_to_add.append((stream, '*', '*')) zephyr_subs_to_add.append((stream, '*', '*'))
actually_subscribed = False actually_subscribed = False
for tries in xrange(10): for tries in range(10):
try: try:
zephyr.init() zephyr.init()
zephyr._z.subAll(zephyr_subs_to_add) zephyr._z.subAll(zephyr_subs_to_add)