summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-10-12 16:35:18 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-10-12 16:35:18 (GMT)
commit771dea77550f0ae81ab069508e7dbe7d8de1a130 (patch)
tree663b5bff24c098e7083e0e285380ce9ee6d5ea66
parent23a580fd7886bb5de8ea1bb14afa7225ea26ea56 (diff)
downloadcpython-771dea77550f0ae81ab069508e7dbe7d8de1a130.zip
cpython-771dea77550f0ae81ab069508e7dbe7d8de1a130.tar.gz
cpython-771dea77550f0ae81ab069508e7dbe7d8de1a130.tar.bz2
Replace a mention of EnvironmentError in the distutils docs.
-rw-r--r--Doc/distutils/apiref.rst11
1 files changed, 5 insertions, 6 deletions
diff --git a/Doc/distutils/apiref.rst b/Doc/distutils/apiref.rst
index 407b80d..091cba1 100644
--- a/Doc/distutils/apiref.rst
+++ b/Doc/distutils/apiref.rst
@@ -1162,12 +1162,11 @@ other utility module.
.. 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)