Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-109408: Add the docs whitespace check from patchcheck to pre-commit #109854

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Oct 10, 2023
Prev Previous commit
Next Next commit
Use "s" variable for readability
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
  • Loading branch information
hugovk and AA-Turner authored Sep 25, 2023
commit 433153d6fd65581e1cb538c45c4e04dad874cc72
3 changes: 2 additions & 1 deletion 3 Tools/patchcheck/patchcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@

def n_files_str(count):
"""Return 'N file(s)' with the proper plurality on 'file'."""
return f"{count} file{'s' if count != 1 else ''}"
s = "s" if count != 1 else ""
return f"{count} file{s}"


def status(message, modal=False, info=None):
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.