From ff2a4ba78ce724032808ebf3e4c006b831980e7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Araujo?= Date: Tue, 30 Nov 2010 17:20:31 +0000 Subject: =?UTF-8?q?Let=E2=80=99s=20keep=20=E2=80=9Cthrow=E2=80=9D=20for=20?= =?UTF-8?q?the=20generator=20method=20and=20use=20=E2=80=9Craise=E2=80=9D?= =?UTF-8?q?=20elsewhere.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Doc/library/configparser.rst | 2 +- Doc/library/os.rst | 2 +- Doc/library/parser.rst | 2 +- Doc/library/urllib.parse.rst | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst index 070328d..df7a1de1 100644 --- a/Doc/library/configparser.rst +++ b/Doc/library/configparser.rst @@ -320,7 +320,7 @@ However, there are a few differences that should be taken into account: the default value to be visible again. Trying to delete a default value causes a ``KeyError``. -* Trying to delete the ``DEFAULTSECT`` throws ``ValueError``. +* Trying to delete the ``DEFAULTSECT`` raises ``ValueError``. * There are two parser-level methods in the legacy API that hide the dictionary interface and are incompatible: diff --git a/Doc/library/os.rst b/Doc/library/os.rst index b2c439c..f3aad19 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -1150,7 +1150,7 @@ Files and Directories single: UNC paths; and os.makedirs() Recursive directory creation function. Like :func:`mkdir`, but makes all - intermediate-level directories needed to contain the leaf directory. Throws + intermediate-level directories needed to contain the leaf directory. Raises an :exc:`error` exception if the leaf directory already exists or cannot be created. The default *mode* is ``0o777`` (octal). On some systems, *mode* is ignored. Where it is used, the current umask value is first masked out. diff --git a/Doc/library/parser.rst b/Doc/library/parser.rst index ad336d3..3e1e31b 100644 --- a/Doc/library/parser.rst +++ b/Doc/library/parser.rst @@ -268,7 +268,7 @@ function for information about the exceptions it can raise. will only need to be aware of the simple string values. Note that the functions :func:`compilest`, :func:`expr`, and :func:`suite` may -raise exceptions which are normally thrown by the parsing and compilation +raise exceptions which are normally raised by the parsing and compilation process. These include the built in exceptions :exc:`MemoryError`, :exc:`OverflowError`, :exc:`SyntaxError`, and :exc:`SystemError`. In these cases, these exceptions carry all the meaning normally associated with them. diff --git a/Doc/library/urllib.parse.rst b/Doc/library/urllib.parse.rst index eab218e..4528c40 100644 --- a/Doc/library/urllib.parse.rst +++ b/Doc/library/urllib.parse.rst @@ -283,7 +283,7 @@ passed in, the result will contain only :class:`bytes` data. Attempting to mix :class:`str` data with :class:`bytes` or :class:`bytearray` in a single function call will result in a -:exc:`TypeError` being thrown, while attempting to pass in non-ASCII +:exc:`TypeError` being raised, while attempting to pass in non-ASCII byte values will trigger :exc:`UnicodeDecodeError`. To support easier conversion of result objects between :class:`str` and -- cgit v0.12