mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[mod] autopep8
This commit is contained in:
parent
7e1712037f
commit
4764dfbef3
2 changed files with 3 additions and 1 deletions
|
@ -9,6 +9,7 @@ from moulinette.core import MoulinetteError
|
|||
|
||||
# Files & directories --------------------------------------------------
|
||||
|
||||
|
||||
def read_file(file_path):
|
||||
"""
|
||||
Read a regular text file
|
||||
|
@ -94,6 +95,7 @@ def write_to_file(file_path, data, file_mode="w"):
|
|||
m18n.g('error_writing_file',
|
||||
file=file_path, error=str(e)))
|
||||
|
||||
|
||||
def append_to_file(file_path, data):
|
||||
"""
|
||||
Append a single string or a list of string to a text file.
|
||||
|
|
|
@ -106,7 +106,7 @@ def call_async_output(args, callback, **kwargs):
|
|||
# Call multiple commands -----------------------------------------------
|
||||
|
||||
def run_commands(cmds, callback=None, separate_stderr=False, shell=True,
|
||||
**kwargs):
|
||||
**kwargs):
|
||||
"""Run multiple commands with error management
|
||||
|
||||
Run a list of commands and allow to manage how to treat errors either
|
||||
|
|
Loading…
Add table
Reference in a new issue