[Python-checkins] bpo-30134: add BytesWarning in warnings.rst (GH-12738)
Inada Naoki
webhook-mailer at python.org
Tue Apr 9 03:00:57 EDT 2019
https://github.com/python/cpython/commit/87ed1beb3e15c619f25b9a9308d1ec35659feffd
commit: 87ed1beb3e15c619f25b9a9308d1ec35659feffd
branch: 2.7
author: Inada Naoki <songofacandy at gmail.com>
committer: GitHub <noreply at github.com>
date: 2019年04月09日T16:00:51+09:00
summary:
bpo-30134: add BytesWarning in warnings.rst (GH-12738)
files:
M Doc/library/warnings.rst
diff --git a/Doc/library/warnings.rst b/Doc/library/warnings.rst
index e82bb97b6c68..b5b89c97c560 100644
--- a/Doc/library/warnings.rst
+++ b/Doc/library/warnings.rst
@@ -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. |
++----------------------------------+-----------------------------------------------+
While these are technically built-in exceptions, they are documented here,
because conceptually they belong to the warnings mechanism.
More information about the Python-checkins
mailing list