Merge pull request #296 from YunoHost/actions/black

Format Python code with Black
This commit is contained in:
Alexandre Aubin 2021-09-12 23:57:44 +02:00 committed by GitHub
commit f414a1656a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,8 +119,8 @@ def write_to_file(file_path, data, file_mode="w"):
file_mode -- Mode used when writing the file. Option meant to be used
by append_to_file to avoid duplicating the code of this function.
"""
assert isinstance(data, str) or isinstance(data, bytes) or isinstance(
data, list
assert (
isinstance(data, str) or isinstance(data, bytes) or isinstance(data, list)
), "Error: data '%s' should be either a string or a list but is of type '%s'" % (
data,
type(data),