Skip to content
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

Don't split manually on linebreaks #209

Merged
merged 2 commits into from
Dec 2, 2022
Merged

Conversation

incase
Copy link
Contributor

@incase incase commented Dec 2, 2022

Use splitlines() instead of manually splitting on \r or \n. Use the first line that looks like a PID (all numbers, as re.match only looks at the start of the line and the regex only allows numbers until end of line anchor).

Fixes #84

Use splitlines() instead of manually splitting on \r or  \n. Use the first line that looks like a PID (all numbers, as re.match only looks at the start of the line and the regex only allows numbers until end of line anchor).
@blink1073 blink1073 added the bug label Dec 2, 2022
Copy link
Contributor

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

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

Thank you!

@blink1073 blink1073 merged commit f1221f4 into jupyter:main Dec 2, 2022
@blink1073
Copy link
Contributor

I'll cut a patch release early next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python 3.8 and get_pid : failure
2 participants