mirror of
https://github.com/ARM-software/devlib.git
synced 2025-02-07 13:40:48 +00:00
target: Fix typos
This commit is contained in:
parent
17c110cc97
commit
d1b08f6df6
@ -264,7 +264,7 @@ class Target(object):
|
|||||||
self.reset()
|
self.reset()
|
||||||
# Wait a fixed delay before starting polling to give the target time to
|
# Wait a fixed delay before starting polling to give the target time to
|
||||||
# shut down, otherwise, might create the connection while it's still shutting
|
# shut down, otherwise, might create the connection while it's still shutting
|
||||||
# down resulting in subsequenct connection failing.
|
# down resulting in subsequent connection failing.
|
||||||
self.logger.debug('Waiting for target to power down...')
|
self.logger.debug('Waiting for target to power down...')
|
||||||
reset_delay = 20
|
reset_delay = 20
|
||||||
time.sleep(reset_delay)
|
time.sleep(reset_delay)
|
||||||
@ -555,7 +555,7 @@ class Target(object):
|
|||||||
if name in self.list_directory(path):
|
if name in self.list_directory(path):
|
||||||
return self.path.join(path, name)
|
return self.path.join(path, name)
|
||||||
except TargetError:
|
except TargetError:
|
||||||
pass # directory does not exist or no executable premssions
|
pass # directory does not exist or no executable permissions
|
||||||
|
|
||||||
which = get_installed
|
which = get_installed
|
||||||
|
|
||||||
@ -601,19 +601,19 @@ class Target(object):
|
|||||||
|
|
||||||
def extract(self, path, dest=None):
|
def extract(self, path, dest=None):
|
||||||
"""
|
"""
|
||||||
Extact the specified on-target file. The extraction method to be used
|
Extract the specified on-target file. The extraction method to be used
|
||||||
(unzip, gunzip, bunzip2, or tar) will be based on the file's extension.
|
(unzip, gunzip, bunzip2, or tar) will be based on the file's extension.
|
||||||
If ``dest`` is specified, it must be an existing directory on target;
|
If ``dest`` is specified, it must be an existing directory on target;
|
||||||
the extracted contents will be placed there.
|
the extracted contents will be placed there.
|
||||||
|
|
||||||
Note that, depending on the archive file format (and therfore the
|
Note that, depending on the archive file format (and therefore the
|
||||||
extraction method used), the original archive file may or may not exist
|
extraction method used), the original archive file may or may not exist
|
||||||
after the extraction.
|
after the extraction.
|
||||||
|
|
||||||
The return value is the path to the extracted contents. In case of
|
The return value is the path to the extracted contents. In case of
|
||||||
gunzip and bunzip2, this will be path to the extracted file; for tar
|
gunzip and bunzip2, this will be path to the extracted file; for tar
|
||||||
and uzip, this will be the directory with the extracted file(s)
|
and uzip, this will be the directory with the extracted file(s)
|
||||||
(``dest`` if it was specified otherwise, the directory that cotained
|
(``dest`` if it was specified otherwise, the directory that contained
|
||||||
the archive).
|
the archive).
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user