Skip to content

[2.7] bpo-30134: add BytesWarning in warnings.rst #12738

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
Apr 9, 2019

Conversation

methane
Copy link
Member

@methane methane commented Apr 9, 2019

@methane methane added docs Documentation in the Doc dir skip news labels Apr 9, 2019
@methane methane merged commit 87ed1be into python:2.7 Apr 9, 2019
@methane methane deleted the byteswarning branch April 9, 2019 07:00
@@ -91,6 +91,9 @@ following warnings category classes are currently defined:
| :exc:`UnicodeWarning` | Base category for warnings related to |
| | Unicode. |
+----------------------------------+-----------------------------------------------+
| :exc:`BytesWarning` | Base category for warnings related to |
| | str and bytearray. |
Copy link
Member

Choose a reason for hiding this comment

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

I would keep bytes

Copy link
Member

Choose a reason for hiding this comment

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

Actually both str and bytes are not related. Keep just bytearray. Fix also the description in the other place.

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 news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants