From: Benjamin Peterson Date: Sun, 10 May 2009 23:52:09 +0000 (+0000) Subject: sys.setdefaultencoding() strikes me as a bad example X-Git-Tag: v2.7a1~1214 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3dabc10134558b4d87e7988133fcbd91fc05f85e;p=python sys.setdefaultencoding() strikes me as a bad example --- 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