X-Git-Url: https://git.sur5r.net/?p=u-boot;a=blobdiff_plain;f=test%2Fpy%2Fu_boot_spawn.py;h=b011a3e3da255f5301163973bc52f72af9da3a32;hp=77a010a33f0cca26c870c72dc7204d42f8587f2c;hb=b8c455500a08c75c4809e523d348027e72cda7ec;hpb=dffd56d1d270e4797e43272a6c9000b8b8aeaf29 diff --git a/test/py/u_boot_spawn.py b/test/py/u_boot_spawn.py index 77a010a33f..b011a3e3da 100644 --- a/test/py/u_boot_spawn.py +++ b/test/py/u_boot_spawn.py @@ -134,7 +134,7 @@ class Spawn(object): the expected time. """ - for pi in xrange(len(patterns)): + for pi in range(len(patterns)): if type(patterns[pi]) == type(''): patterns[pi] = re.compile(patterns[pi]) @@ -143,7 +143,7 @@ class Spawn(object): while True: earliest_m = None earliest_pi = None - for pi in xrange(len(patterns)): + for pi in range(len(patterns)): pattern = patterns[pi] m = pattern.search(self.buf) if not m: @@ -198,7 +198,7 @@ class Spawn(object): """ os.close(self.fd) - for i in xrange(100): + for i in range(100): if not self.isalive(): break time.sleep(0.1)