bpo-30134: add BytesWarning in warnings.rst (GH-12738)
This commit is contained in:
parent
d012d64b6a
commit
87ed1beb3e
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue