From: Inada Naoki Date: Tue, 9 Apr 2019 07:00:51 +0000 (+0900) Subject: bpo-30134: add BytesWarning in warnings.rst (GH-12738) X-Git-Tag: v2.7.17rc1~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87ed1beb3e15c619f25b9a9308d1ec35659feffd;p=thirdparty%2FPython%2Fcpython.git bpo-30134: add BytesWarning in warnings.rst (GH-12738) --- 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.