]> git.sur5r.net Git - u-boot/blobdiff - test/py/u_boot_console_sandbox.py
test/py: Use range() rather than xrange()
[u-boot] / test / py / u_boot_console_sandbox.py
index a616cfb49fc7a06a97af6e6b19fd93b804f3cf0e..778f6d0983d621e86a16ae825d20dc5b5ee7defc 100644 (file)
@@ -41,7 +41,7 @@ class ConsoleSandbox(ConsoleBase):
         bcfg = self.config.buildconfig
         config_spl = bcfg.get('config_spl', 'n') == 'y'
         fname = '/spl/u-boot-spl' if config_spl else '/u-boot'
-        print fname
+        print(fname)
         cmd = []
         if self.config.gdbserver:
             cmd += ['gdbserver', self.config.gdbserver]
@@ -81,7 +81,7 @@ class ConsoleSandbox(ConsoleBase):
 
         p = self.p
         self.p = None
-        for i in xrange(100):
+        for i in range(100):
             ret = not p.isalive()
             if ret:
                 break