From 7ccd60584ace895596a11b7db5387d36bfec4a90 Mon Sep 17 00:00:00 2001 From: Eklavya Sharma Date: Thu, 10 Mar 2016 23:13:31 +0530 Subject: [PATCH] Apply Python 3 futurize transform libmodernize.fixes.fix_xrange_six Refer to #256 --- bots/check-mirroring | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bots/check-mirroring b/bots/check-mirroring index a0215e8..9794df9 100755 --- a/bots/check-mirroring +++ b/bots/check-mirroring @@ -1,5 +1,6 @@ #!/usr/bin/env python2.7 from __future__ import print_function +from __future__ import absolute_import import sys import time import optparse @@ -8,6 +9,7 @@ import random import logging import subprocess import hashlib +from six.moves import range parser = optparse.OptionParser() parser.add_option('--verbose', @@ -150,7 +152,7 @@ for (stream, test) in test_streams: zephyr_subs_to_add.append((stream, '*', '*')) actually_subscribed = False -for tries in xrange(10): +for tries in range(10): try: zephyr.init() zephyr._z.subAll(zephyr_subs_to_add)