From d012d64b6a513e760abb6745f7f7ce5e6a31f274 Mon Sep 17 00:00:00 2001 From: cocoatomo Date: Tue, 9 Apr 2019 14:43:11 +0900 Subject: bpo-30134: add an explanation of BytesWarning (GH-1249) --- Doc/library/exceptions.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst index 8757c6c..2bc2bce 100644 --- a/Doc/library/exceptions.rst +++ b/Doc/library/exceptions.rst @@ -524,6 +524,13 @@ module for more information. .. versionadded:: 2.5 +.. exception:: BytesWarning + + Base class for warnings related to :class:`str` and :class:`bytearray`. + + .. versionadded:: 2.6 + + Exception hierarchy ------------------- -- cgit v0.12