summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2008-01-19 15:16:37 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2008-01-19 15:16:37 (GMT)
commit4eab1f0e0df87f29a78cf7996986a52870e87b20 (patch)
tree8dc62247dd579627484f6f82c93f5d99c94ec7ee
parent95016e71ea7ea9394c0b72f7614ece193d0b3307 (diff)
downloadcpython-4eab1f0e0df87f29a78cf7996986a52870e87b20.zip
cpython-4eab1f0e0df87f29a78cf7996986a52870e87b20.tar.gz
cpython-4eab1f0e0df87f29a78cf7996986a52870e87b20.tar.bz2
Polish sentence
-rw-r--r--Doc/c-api/utilities.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/c-api/utilities.rst b/Doc/c-api/utilities.rst
index f2a2c74..ada7dee 100644
--- a/Doc/c-api/utilities.rst
+++ b/Doc/c-api/utilities.rst
@@ -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