]> granicus.if.org Git - python/commitdiff
sys.setdefaultencoding() strikes me as a bad example
authorBenjamin Peterson <benjamin@python.org>
Sun, 10 May 2009 23:52:09 +0000 (23:52 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 10 May 2009 23:52:09 +0000 (23:52 +0000)
Doc/library/exceptions.rst

index a50ffbfe64ab4c6c7f0f8d9c87d24af644c70d29..0b4c668149d2cbf965b7bf8cc45bb880d04d9bcc 100644 (file)
@@ -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