Skip to content

Commit

Permalink
Replaced the format with fstring
Browse files Browse the repository at this point in the history
  • Loading branch information
harriebird committed Oct 22, 2024
1 parent dfd4a2f commit 85b3f06
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions weblate_schemas/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,8 @@ def translation(self) -> str:
@property
def summary(self) -> str:
"""Return the message summary."""
return "{} event{} occurred in {}.".format(
self.action,
f" done by {self.user}" if self.user else "",
self.timestamp,
)
return f"{ self.action } event{ f" done by { self.user }" \
if self.user else "" } occurred in { self.timestamp }."

@property
def usernames(self) -> list[str]:
Expand Down

0 comments on commit 85b3f06

Please sign in to comment.