]> granicus.if.org Git - python/commitdiff
Merged revisions 86892 via svnmerge from
authorÉric Araujo <merwok@netwok.org>
Tue, 30 Nov 2010 17:53:45 +0000 (17:53 +0000)
committerÉric Araujo <merwok@netwok.org>
Tue, 30 Nov 2010 17:53:45 +0000 (17:53 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86892 | eric.araujo | 2010-11-30 18:20:31 +0100 (mar., 30 nov. 2010) | 2 lines

  Let’s keep “throw” for the generator method and use “raise” elsewhere.
........

Doc/library/os.rst
Doc/library/parser.rst

index 194a0c4d7606688038604f91bfcc6ab0494f7aa3..7378d2e5aa45c0b39768d9c77860369564dc7373 100644 (file)
@@ -1191,7 +1191,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 an
+   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 ``0777`` (octal).  On some systems, *mode* is
    ignored. Where it is used, the current umask value is first masked out.
index 9049c825cb594de55fc07a4e2a8c7917e8ed0982..c46aeae7ee210ae78929a358d634862f7f8ed02a 100644 (file)
@@ -273,7 +273,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.