diff options
| author | Tom Rini <[email protected]> | 2018-07-11 09:40:38 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2018-07-11 09:40:38 -0400 |
| commit | 1703fbefd9183fffd76f4744a73f5ca9daef6313 (patch) | |
| tree | d1155db77dc38ebb02aa0ee66f4559032c092d74 /test/py/u_boot_spawn.py | |
| parent | 421be6fca5cbe0d9dd3a10467529eed53528c258 (diff) | |
| parent | 8793631ec13ee9e6c7189a7bdca38dde7b4390a8 (diff) | |
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'test/py/u_boot_spawn.py')
| -rw-r--r-- | test/py/u_boot_spawn.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/py/u_boot_spawn.py b/test/py/u_boot_spawn.py index 108498a9a4b..b011a3e3da2 100644 --- a/test/py/u_boot_spawn.py +++ b/test/py/u_boot_spawn.py @@ -58,7 +58,7 @@ class Spawn(object): os.chdir(cwd) os.execvp(args[0], args) except: - print 'CHILD EXECEPTION:' + print('CHILD EXECEPTION:') import traceback traceback.print_exc() finally: @@ -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) |
