1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-09-09 21:41:53 +01:00
This commit is contained in:
Sebastian Goscik
2016-02-15 15:21:40 +00:00
parent 880a0bcb7c
commit aab487c1ac
3 changed files with 4 additions and 7 deletions

View File

@@ -175,7 +175,7 @@ class AdbConnection(object):
timeout = self.timeout
# Pull all files matching a wildcard expression
if os.path.isdir(dest) and \
('*' in source or '?' in source):
('*' in source or '?' in source):
command = 'shell ls {}'.format(source)
output = adb_command(self.device, command, timeout=timeout)
for line in output.splitlines():
@@ -241,7 +241,7 @@ def adb_get_device(timeout=None):
return output[1].split('\t')[0]
elif output_length > 3:
message = '{} Android devices found; either explicitly specify ' +\
'the device you want, or make sure only one is connected.'
'the device you want, or make sure only one is connected.'
raise HostError(message.format(output_length - 2))
else:
if timeout < time.time() - start: