]> granicus.if.org Git - python/commitdiff
Polish sentence
authorAndrew M. Kuchling <amk@amk.ca>
Sat, 19 Jan 2008 15:16:37 +0000 (15:16 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Sat, 19 Jan 2008 15:16:37 +0000 (15:16 +0000)
Doc/c-api/utilities.rst

index f2a2c7422b3b4dd65728adea58189af80a51a188..ada7dee4dda5d3b42ab075c977f086ac7b0a69ad 100644 (file)
@@ -207,12 +207,12 @@ Importing Modules
 .. cfunction:: PyObject* PyImport_ImportModuleNoBlock(const char *name)
 
    This version of :cfunc:`PyImport_ImportModule` does not block. It's intended
-   to be used in C function which import other modules to execute a function.
+   to be used in C functions that import other modules to execute a function.
    The import may block if another thread holds the import lock. The function
-   :cfunc:`PyImport_ImportModuleNoBlock` doesn't block. It first tries to fetch
+   :cfunc:`PyImport_ImportModuleNoBlock` never blocks. It first tries to fetch
    the module from sys.modules and falls back to :cfunc:`PyImport_ImportModule`
-   unless the the lock is hold. In the latter case the function raises an
-   ImportError.
+   unless the lock is held, in which case the function will raise an
+   :exc:`ImportError`.
 
    .. versionadded:: 2.6