]> granicus.if.org Git - python/commitdiff
Fix importlib.machinery.all_suffixes docs
authorNick Coghlan <ncoghlan@gmail.com>
Wed, 18 Jul 2012 13:59:08 +0000 (23:59 +1000)
committerNick Coghlan <ncoghlan@gmail.com>
Wed, 18 Jul 2012 13:59:08 +0000 (23:59 +1000)
Doc/library/importlib.rst

index daf9e569dd2ec49172399d349aa1b5bace6e142a..b114dd53df810349c71a56e6c6c548933acc5020 100644 (file)
@@ -539,13 +539,13 @@ find and load modules.
    .. versionadded:: 3.3
 
 
-.. func:: all_suffixes()
+.. function:: all_suffixes()
 
    Returns a combined list of strings representing all file suffixes for
-   Python modules recognized by the standard import machinery. This is a
+   modules recognized by the standard import machinery. This is a
    helper for code which simply needs to know if a filesystem path
-   potentially represents a Python module (for example,
-   :func:`inspect.getmodulename`)
+   potentially refers to a module without needing any details on the kind
+   of module (for example, :func:`inspect.getmodulename`)
 
    .. versionadded:: 3.3