]> granicus.if.org Git - python/commitdiff
New doc strings.
authorGuido van Rossum <guido@python.org>
Wed, 2 Apr 1997 05:47:11 +0000 (05:47 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 2 Apr 1997 05:47:11 +0000 (05:47 +0000)
Lib/glob.py

index bacaf183e1f6bd0fa681c292d9f21c0124f2a3aa..990ffa3ada0303c30731e12f8bf84b41568a39a7 100644 (file)
@@ -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]