[Python-checkins] cpython: Replace a mention of EnvironmentError in the distutils docs.

antoine.pitrou python-checkins at python.org
Wed Oct 12 18:39:06 CEST 2011


http://hg.python.org/cpython/rev/70b94f69bbf8
changeset:   72887:70b94f69bbf8
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Wed Oct 12 18:35:18 2011 +0200
summary:
  Replace a mention of EnvironmentError in the distutils docs.

files:
  Doc/distutils/apiref.rst |  11 +++++------
  1 files changed, 5 insertions(+), 6 deletions(-)


diff --git a/Doc/distutils/apiref.rst b/Doc/distutils/apiref.rst
--- a/Doc/distutils/apiref.rst
+++ b/Doc/distutils/apiref.rst
@@ -1162,12 +1162,11 @@
 
 .. function:: grok_environment_error(exc[, prefix='error: '])
 
-   Generate a useful error message from an :exc:`EnvironmentError`  (:exc:`IOError`
-   or :exc:`OSError`) exception object.   Handles Python 1.5.1 and later styles,
-   and does what it can to deal with  exception objects that don't have a filename
-   (which happens when the error  is due to a two-file operation, such as
-   :func:`rename` or  :func:`link`).  Returns the error message as a string
-   prefixed  with *prefix*.
+   Generate a useful error message from an :exc:`OSError` exception object.
+   Handles Python 1.5.1 and later styles, and does what it can to deal with
+   exception objects that don't have a filename (which happens when the error
+   is due to a two-file operation, such as :func:`rename` or :func:`link`).
+   Returns the error message as a string prefixed with *prefix*.
 
 
 .. function:: split_quoted(s)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list