-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
[3.14] gh-142206: multiprocessing.resource_tracker: Decode messages using older protocol (GH-142215) #142285
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
Conversation
…ages using older protocol (pythonGH-142215) (cherry picked from commit 4172644) Co-authored-by: Petr Viktorin <[email protected]>
|
@hugovk This backport should be ready to merge, maybe you want to do a quick sanity check? |
vstinner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I just have a minor coding style suggestion.
| except Exception as e: | ||
| raise ValueError("malformed resource_tracker message: %r" % (line,)) from e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| except Exception as e: | |
| raise ValueError("malformed resource_tracker message: %r" % (line,)) from e | |
| except Exception as exc: | |
| raise ValueError("malformed resource_tracker message: %r" % (line,)) from exc |
Same suggestion for the similar try/except below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see this message; I merged at the same time you sent it :(
Anyway, I wouldn't change style in a backport.
(Also note that this part of the code was moved -- see git show --color-moved --color-moved-ws=allow-indentation-change f130b06da or a fancy Git client.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem. It just was a minor suggestion.
|
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
…ages using older protocol (pythonGH-142215) (pythonGH-142285) (cherry picked from commit 4172644) Difference from the original commit: the default in 3.14 is to use the simpler original protocol (except for filenames with newlines). (cherry picked from commit f130b06) Co-authored-by: Petr Viktorin <[email protected]>
|
GH-142287 is a backport of this pull request to the 3.13 branch. |
…sing older protocol (GH-142215) (#142287) [3.14] gh-142206: multiprocessing.resource_tracker: Decode messages using older protocol (GH-142215) (GH-142285) (cherry picked from commit 4172644) Difference from the original commit: the default in 3.14 is to use the simpler original protocol (except for filenames with newlines). (cherry picked from commit f130b06) Co-authored-by: Petr Viktorin <[email protected]>
(cherry picked from commit 4172644)
In 3.14, send messages the simpler original protocol by default (that is: except for filenames with newlines).