Skip to content

Commit

Permalink
Use format specifiers instead of percent format
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Dec 27, 2024
1 parent 2a88855 commit 3618a13
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions prospector/formatters/emacs.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@
class EmacsFormatter(TextFormatter):
def render_message(self, message: Message) -> str:
output = [
"%s:%s:%d:"
% (
self._make_path(message.location),
message.location.line,
(message.location.character or 0) + 1,
),
f"{self._make_path(message.location)}:{message.location.line}:{(message.location.character or 0) + 1}:",
" L{}:{} {}: {} - {}".format(
message.location.line or "-",
message.location.character if message.location.line else "-",
Expand Down

0 comments on commit 3618a13

Please sign in to comment.