-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
DOC Remove some str/unicode leftovers from Python 2 #21270
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
* string → str (when meant as Python 2 `str` or `unicode` and not `bytes`) * unicode → str and str → bytes (when meant as Python 2 types) * str → bytes or str (when primarily meant for `bytes` and no-op for `str`)
a2c511e
to
8b16f5c
Compare
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 for the clean-up!
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.
Thank you for the PR @DimitriPapadopoulos !
Most comments are to be consistent with other docstrings.
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
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, thank you @DimitriPapadopoulos for making those doc-strings uniform.
Thanks @DimitriPapadopoulos! |
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
string
→str
(when meant as Python 2str
orunicode
and notbytes
)unicode
→str
andstr
→bytes
(when meant as Python 2 types)str
→bytes or str
(when primarily meant forbytes
and no-op forstr
)