-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
bpo-39524: Fixed doc-string in ast._pad_whitespace #18340
bpo-39524: Fixed doc-string in ast._pad_whitespace #18340
Conversation
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). CLA MissingOur records indicate the following people have not signed the CLA: For legal reasons we need all the people listed to sign the CLA before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. If you have recently signed the CLA, please wait at least one business day You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
Codecov Report
@@ Coverage Diff @@
## master #18340 +/- ##
==========================================
- Coverage 82.20% 82.11% -0.09%
==========================================
Files 1957 1954 -3
Lines 588894 583559 -5335
Branches 44382 44429 +47
==========================================
- Hits 484072 479209 -4863
+ Misses 95175 94703 -472
Partials 9647 9647
Continue to review full report at Codecov.
|
Lib/ast.py
Outdated
@@ -302,7 +302,7 @@ def _splitlines_no_ff(source): | |||
|
|||
|
|||
def _pad_whitespace(source): | |||
"""Replace all chars except '\f\t' in a line with spaces.""" | |||
"""Replace all chars except '\\f\\t' in a line with spaces.""" |
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, but I prefer to use a raw string literal.
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 have no absolute preference. You can change it if you consider raw string as more suitable.
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.
@mpheath, thank you for your contribution to CPython and for your interest in improving the language and the documentation. Serhiy's suggestion was asking if you could change it to a raw string in your PR and then he'll merge the change.
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.
Changed to raw string literal.
Signing the CLA is not required for such trivial change. |
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. Thanks.
Thanks @mpheath for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8. |
Sorry @mpheath and @serhiy-storchaka, I had trouble checking out the |
GH-22857 is a backport of this pull request to the 3.8 branch. |
|
|
|
|
|
Escape sequences in doc string of ast._pad_whitespace
https://bugs.python.org/issue39524