on xenial help sign in
Make this python3 compatible
7b100beAlbert Astals
tests/autopilot/unity8/shell/emulators/dash.py+3−3
@@ -68,9 +68,9 @@ class Dash(emulators.UnityEmulatorBase):
68
68
69 """
69 """
70 scope_loader = self._get_scope_loader(scope_id)
70 scope_loader = self._get_scope_loader(scope_id)
71− print "open_scope", scope_id, scope_loader
71+ print ("open_scope", scope_id, scope_loader)
72 if scope_loader.isCurrent:
72 if scope_loader.isCurrent:
73− print "scope_loader.isCurrent"
73+ print ("scope_loader.isCurrent")
74 logger.info('The scope is already open.')
74 logger.info('The scope is already open.')
75 return self._get_scope_from_loader(scope_loader)
75 return self._get_scope_from_loader(scope_loader)
76 else:
76 else:
@@ -85,7 +85,7 @@ class Dash(emulators.UnityEmulatorBase):
85 'No scope found with id {0}'.format(scope_id))
85 'No scope found with id {0}'.format(scope_id))
86
86
87 def _get_scope_from_loader(self, loader):
87 def _get_scope_from_loader(self, loader):
88− print "_get_scope_from_loader", loader, loader.isCurrent, loader.isLoaded, loader.get_children()
88+ print ("_get_scope_from_loader", loader, loader.isCurrent, loader.isLoaded, loader.get_children())
89 i = 0
89 i = 0
90 time.sleep(1)
90 time.sleep(1)
91 while len(loader.get_children()) < 1 and i < 5:
91 while len(loader.get_children()) < 1 and i < 5: