FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-25409: DOC: Clarify text for case normalization in fnmatch. · python/cpython@f1f2143 · GitHub

Repository navigation

Commit f1f2143

Browse files
committed
bpo-25409: DOC: Clarify text for case normalization in fnmatch.
1 parent cdb89cd commit f1f2143

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎Doc/library/fnmatch.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ patterns.
4343
.. function:: fnmatch(filename, pattern)
4444

4545
Test whether the *filename* string matches the *pattern* string, returning
46-
:const:`True` or :const:`False`. If the operating system is case-insensitive,
47-
then both parameters will be normalized to all lower- or upper-case before
48-
the comparison is performed. :func:`fnmatchcase` can be used to perform a
46+
:const:`True` or :const:`False`. Both parameters are case-normalized
47+
using :func:`os.path.normcase`. :func:`fnmatchcase` can be used to perform a
4948
case-sensitive comparison, regardless of whether that's standard for the
5049
operating system.
5150

@@ -63,7 +62,8 @@ patterns.
6362
.. function:: fnmatchcase(filename, pattern)
6463

6564
Test whether *filename* matches *pattern*, returning :const:`True` or
66-
:const:`False`; the comparison is case-sensitive.
65+
:const:`False`; the comparison is case-sensitive and does not apply
66+
:func:`os.path.normcase`.
6767

6868

6969
.. function:: filter(names, pattern)

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL