diff --git a/otaclient/app/common.py b/otaclient/app/common.py index 530489e5c..536cbcb7f 100644 --- a/otaclient/app/common.py +++ b/otaclient/app/common.py @@ -162,8 +162,8 @@ def subprocess_check_output( Args: cmd (str | list[str]): command to be executed. - raise_exception (bool, optional): raise the underlaying CalledProcessError. Defaults to False. - default (str, optional): if is False, return on underlaying + raise_exception (bool, optional): raise the underlying CalledProcessError. Defaults to False. + default (str, optional): if is False, return on underlying subprocess call failed. Defaults to "". timeout (Optional[float], optional): timeout for execution. Defaults to None. @@ -197,7 +197,7 @@ def subprocess_call( Args: cmd (str | list[str]): command to be executed. - raise_exception (bool, optional): raise the underlaying CalledProcessError. Defaults to False. + raise_exception (bool, optional): raise the underlying CalledProcessError. Defaults to False. timeout (Optional[float], optional): timeout for execution. Defaults to None. """ try: @@ -563,7 +563,7 @@ def shutdown(self, *, raise_last_exc: bool): logger.debug("shutdown retry task map") if self._running_inst: self._running_inst.shutdown(raise_last_exc=raise_last_exc) - # NOTE: passthrough the exception from underlaying running_inst + # NOTE: passthrough the exception from underlying running_inst finally: self._running_inst = None self._executor.shutdown(wait=True) diff --git a/otaclient/app/proto/README.md b/otaclient/app/proto/README.md index b1a177efa..4aab4ca71 100644 --- a/otaclient/app/proto/README.md +++ b/otaclient/app/proto/README.md @@ -143,7 +143,7 @@ After the compiled python code is ready, we can define the wrappers accordingly # type hints for each attributes when manually create instances # of wrapper types. # NOTE: this __init__ is just for typing use, it will not be - # used by the underlaying MessageWrapper + # used by the underlying MessageWrapper # NOTE: if pyi file is also generated when compiling the proto file, # the __init__ in pyi file can be used directly with little adjustment def __init__(