Skip to content

Commit f6a83d9

Browse files
committed
fix: string formatting of msg
Signed-off-by: K.B.Dharun Krishna <[email protected]>
1 parent 498627f commit f6a83d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tldr.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,9 @@ def main() -> None:
630630
single = len(platforms_str) == 1
631631
print(
632632
f"There {'is' if single else 'are'} other version"
633-
"{'' if single else 's'} of this page under the following"
634-
"platform{'' if single else 's'}: {', '.join(platforms_str)}."
633+
f"{'s' if not single else ''} of this page under the "
634+
f"following platform{'s' if not single else ''}: "
635+
f"{', '.join(platforms_str)}."
635636
)
636637
except URLError as e:
637638
sys.exit("Error fetching from tldr: {}".format(e))

0 commit comments

Comments
 (0)