]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
glob uses fnmatch.filter instead of fnmatch since 2001. (GH-10102)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 7 Nov 2018 18:30:27 +0000 (10:30 -0800)
committerGitHub <noreply@github.com>
Wed, 7 Nov 2018 18:30:27 +0000 (10:30 -0800)
(cherry picked from commit ae31e3fbf4e7def772fc1c94342d1011424fdc99)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Doc/library/fnmatch.rst

index 48dc5e5dde168a1014cb7ef36acaf2a046ccb063..fb0a1e33232619e46c922604804bf708186e7413 100644 (file)
@@ -42,7 +42,7 @@ For example, ``'[?]'`` matches the character ``'?'``.
 
 Note that the filename separator (``'/'`` on Unix) is *not* special to this
 module.  See module :mod:`glob` for pathname expansion (:mod:`glob` uses
-:func:`fnmatch` to match pathname segments).  Similarly, filenames starting with
+:func:`.filter` to match pathname segments).  Similarly, filenames starting with
 a period are not special for this module, and are matched by the ``*`` and ``?``
 patterns.