From 3dabc10134558b4d87e7988133fcbd91fc05f85e Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 10 May 2009 23:52:09 +0000 Subject: [PATCH] sys.setdefaultencoding() strikes me as a bad example --- Doc/library/exceptions.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst index a50ffbfe64..0b4c668149 100644 --- a/Doc/library/exceptions.rst +++ b/Doc/library/exceptions.rst @@ -84,9 +84,9 @@ The following exceptions are only used as base classes for other exceptions. .. exception:: LookupError - The base class for the exceptions that are raised when a key or index used on a - mapping or sequence is invalid: :exc:`IndexError`, :exc:`KeyError`. This can be - raised directly by :func:`sys.setdefaultencoding`. + The base class for the exceptions that are raised when a key or index used on + a mapping or sequence is invalid: :exc:`IndexError`, :exc:`KeyError`. This + can be raised directly by :func:`codecs.lookup`. .. exception:: EnvironmentError -- 2.50.1