sys.setdefaultencoding() strikes me as a bad example

This commit is contained in:
Benjamin Peterson 2009-05-10 23:52:09 +00:00
parent 2bb084e643
commit 3dabc10134

View 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