Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 771dea7

Browse files
committed
Replace a mention of EnvironmentError in the distutils docs.
1 parent 23a580f commit 771dea7

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

Doc/distutils/apiref.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,12 +1162,11 @@ other utility module.
11621162

11631163
.. function:: grok_environment_error(exc[, prefix='error: '])
11641164

1165-
Generate a useful error message from an :exc:`EnvironmentError` (:exc:`IOError`
1166-
or :exc:`OSError`) exception object. Handles Python 1.5.1 and later styles,
1167-
and does what it can to deal with exception objects that don't have a filename
1168-
(which happens when the error is due to a two-file operation, such as
1169-
:func:`rename` or :func:`link`). Returns the error message as a string
1170-
prefixed with *prefix*.
1165+
Generate a useful error message from an :exc:`OSError` exception object.
1166+
Handles Python 1.5.1 and later styles, and does what it can to deal with
1167+
exception objects that don't have a filename (which happens when the error
1168+
is due to a two-file operation, such as :func:`rename` or :func:`link`).
1169+
Returns the error message as a string prefixed with *prefix*.
11711170

11721171

11731172
.. function:: split_quoted(s)

0 commit comments

Comments
 (0)