mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-16 07:47:35 +01:00
Fixed D401,D205
This commit is contained in:
parent
0df1f9cd43
commit
6da1d8d80f
1 changed files with 4 additions and 3 deletions
|
@ -15,7 +15,7 @@ from slpkg.progress_bar import ProgressBar
|
|||
|
||||
|
||||
class MultiProcess(Configs): # pylint: disable=[R0902]
|
||||
"""Creates parallel process between progress bar and process."""
|
||||
"""Create parallel process between progress bar and process."""
|
||||
|
||||
def __init__(self, flags: list = None):
|
||||
super(Configs, self).__init__()
|
||||
|
@ -38,7 +38,8 @@ class MultiProcess(Configs): # pylint: disable=[R0902]
|
|||
('-r', '--reinstall'), flags)
|
||||
|
||||
def process_and_log(self, command: str, filename: str, progress_message: str) -> None:
|
||||
"""Starting a multiprocessing process.
|
||||
"""Start a multiprocessing process.
|
||||
|
||||
Args:
|
||||
command: The command of process
|
||||
filename: The filename of process.
|
||||
|
@ -117,7 +118,7 @@ class MultiProcess(Configs): # pylint: disable=[R0902]
|
|||
raise SystemExit(process.returncode)
|
||||
|
||||
def _error_process(self) -> None:
|
||||
"""Prints error message for a process."""
|
||||
"""Print error message for a process."""
|
||||
if not self.progress_bar_conf and not self.option_for_progress_bar:
|
||||
message: str = 'Error occurred with process. Please check the log file.'
|
||||
print()
|
||||
|
|
Loading…
Reference in a new issue