From 87ed1beb3e15c619f25b9a9308d1ec35659feffd Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Tue, 9 Apr 2019 16:00:51 +0900 Subject: bpo-30134: add BytesWarning in warnings.rst (GH-12738) --- Doc/library/warnings.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/library/warnings.rst b/Doc/library/warnings.rst index e82bb97..b5b89c9 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. -- cgit v0.12