Skip to content

Doc: Add missing spaces after period for posix_spawn #22730

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 1 commit into from
Oct 20, 2020

Conversation

tomer
Copy link
Contributor

@tomer tomer commented Oct 16, 2020

No description provided.

@the-knights-who-say-ni
Copy link

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA).

Recognized GitHub username

We couldn't find a bugs.python.org (b.p.o) account corresponding to the following GitHub usernames:

@tomer

This might be simply due to a missing "GitHub Name" entry in one's b.p.o account settings. This is necessary for legal reasons before we can look at this contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

You can check yourself to see if the CLA has been received.

Thanks again for the contribution, we look forward to reviewing it!

Comment on lines 3713 to 3714
The *path* parameter is the path to the executable file. The *path* should
contain a directory. Use :func:`posix_spawnp` to pass an executable file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! A minor nitpick I have is that PEP 12 states:

You must adhere to the Emacs convention of adding two spaces at the end of every sentence

Although I realized most of the docs are inconsistent with this and it's not strictly adhered to, I thought I'd just point it out.

Suggested change
The *path* parameter is the path to the executable file. The *path* should
contain a directory. Use :func:`posix_spawnp` to pass an executable file
The *path* parameter is the path to the executable file. The *path* should
contain a directory. Use :func:`posix_spawnp` to pass an executable file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why the two spaces convention is useful for, but it can be automated easily. I'm adding another commit for this below, feel free to squash them into one.

sed -i "s/\.\ \([A-Z]\)/\.\ \ \1/g" os.rst

Copy link
Member

@Fidget-Spinner Fidget-Spinner Oct 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I don't use Emacs so I'm not able to justify them either. Personally, I'd recommend the automated adding of spaces be part of a separate PR (and just add the spaces for your own edits for this one) since this might make it harder for the core devs to review. Changes that fix a styling problem should probably go into another PR https://devguide.python.org/pullrequest/#making-good-commits. Sorry if I created confusion regarding what was to be fixed!

Edit: When PRs are merged, they are squash-ed into a single commit, so you don't have to squash the commits yourself.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropped the second commit, added double spaces only to the changed lines.

@methane methane changed the title Add missing spaces after period for posix_spawn in /Doc/library/os.rst Doc: Add missing spaces after period for posix_spawn Oct 20, 2020
@methane methane merged commit 5b57fa6 into python:master Oct 20, 2020
@miss-islington
Copy link
Contributor

Thanks @tomer for the PR, and @methane for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 20, 2020
@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label Oct 20, 2020
@bedevere-bot
Copy link

GH-22809 is a backport of this pull request to the 3.9 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 20, 2020
@bedevere-bot
Copy link

GH-22810 is a backport of this pull request to the 3.8 branch.

miss-islington added a commit that referenced this pull request Oct 20, 2020
(cherry picked from commit 5b57fa6)

Co-authored-by: Tomer Cohen <[email protected]>
miss-islington added a commit that referenced this pull request Oct 20, 2020
(cherry picked from commit 5b57fa6)

Co-authored-by: Tomer Cohen <[email protected]>
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants