diff options
author | Guido van Rossum <guido@python.org> | 1997-04-02 05:47:11 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-04-02 05:47:11 (GMT) |
commit | ab096c91e2ec36dc64daf208b20a2cc846449015 (patch) | |
tree | 46f73478ecbe05be1e9ac200fa81612f290d40ec /Lib/glob.py | |
parent | fd79566d0f04c4cd1d98bca9396fbf2426f1c6ac (diff) | |
download | cpython-ab096c91e2ec36dc64daf208b20a2cc846449015.zip cpython-ab096c91e2ec36dc64daf208b20a2cc846449015.tar.gz cpython-ab096c91e2ec36dc64daf208b20a2cc846449015.tar.bz2 |
New doc strings.
Diffstat (limited to 'Lib/glob.py')
-rw-r--r-- | Lib/glob.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/glob.py b/Lib/glob.py index bacaf18..990ffa3 100644 --- a/Lib/glob.py +++ b/Lib/glob.py @@ -1,4 +1,4 @@ -# Module 'glob' -- filename globbing. +"""Filename globbing utility.""" import os import fnmatch @@ -6,6 +6,11 @@ import regex def glob(pathname): + """Return a list of paths matching a pathname pattern. + + The pattern may contain simple shell-style wildcards a la fnmatch. + + """ if not has_magic(pathname): if os.path.exists(pathname): return [pathname] |