Skip to content

Commit

Permalink
fix black findings
Browse files Browse the repository at this point in the history
  • Loading branch information
maekke committed Jul 3, 2024
1 parent 9551615 commit f9960b3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion lib/_emerge/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2806,7 +2806,9 @@ def display_missing_pkg_set(root_config, set_name):
msgs.append(f" {s}")
msgs.append("")

writemsg_level("".join(f"{msg}\n" for msg in msgs), level=logging.ERROR, noiselevel=-1)
writemsg_level(
"".join(f"{msg}\n" for msg in msgs), level=logging.ERROR, noiselevel=-1
)


def relative_profile_path(portdir, abs_profile):
Expand Down
3 changes: 2 additions & 1 deletion lib/portage/elog/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def collect_ebuild_messages(path):
raise ValueError(msgtype)
except ValueError:
writemsg(
_("!!! malformed entry in " "log file: '%s': %s\n") % (filename, line),
_("!!! malformed entry in " "log file: '%s': %s\n")
% (filename, line),
noiselevel=-1,
)
continue
Expand Down
3 changes: 2 additions & 1 deletion lib/portage/util/_dyn_libs/LinkageMapELF.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ def rebuild(self, exclude_pkgs=None, include_file=None, preserve_paths=None):
# os.stat() will raise "TypeError: must be encoded string
# without NULL bytes, not str" in this case.
writemsg_level(
_("\nLine contains null byte(s) " "in %s: %s\n\n") % (location, line),
_("\nLine contains null byte(s) " "in %s: %s\n\n")
% (location, line),
level=logging.ERROR,
noiselevel=-1,
)
Expand Down
4 changes: 3 additions & 1 deletion lib/portage/util/locale.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ def _check_locale(silent):
]
)
writemsg_level(
"".join([f"!!! {line}\n" for line in msg]), level=logging.ERROR, noiselevel=-1
"".join([f"!!! {line}\n" for line in msg]),
level=logging.ERROR,
noiselevel=-1,
)
return False

Expand Down

0 comments on commit f9960b3

Please sign in to comment.