Skip to content

Commit 87ed1be

Browse files
authored
bpo-30134: add BytesWarning in warnings.rst (GH-12738)
1 parent d012d64 commit 87ed1be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/library/warnings.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ following warnings category classes are currently defined:
9191
| :exc:`UnicodeWarning` | Base category for warnings related to |
9292
| | Unicode. |
9393
+----------------------------------+-----------------------------------------------+
94+
| :exc:`BytesWarning` | Base category for warnings related to |
95+
| | str and bytearray. |
96+
+----------------------------------+-----------------------------------------------+
9497

9598
While these are technically built-in exceptions, they are documented here,
9699
because conceptually they belong to the warnings mechanism.

0 commit comments

Comments
 (0)