]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-30134: add BytesWarning in warnings.rst (GH-12738)
authorInada Naoki <songofacandy@gmail.com>
Tue, 9 Apr 2019 07:00:51 +0000 (16:00 +0900)
committerGitHub <noreply@github.com>
Tue, 9 Apr 2019 07:00:51 +0000 (16:00 +0900)
Doc/library/warnings.rst

index e82bb97b6c680ffcb05dbcdd6b1112a79898a761..b5b89c97c560e6ed07c1e3bbe73a8c77ec22e4e6 100644 (file)
@@ -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.