Commit d8b7ba79 authored by Guido van Rossum's avatar Guido van Rossum

New doc strings.

parent 1c5d4866
# Module 'glob' -- filename globbing. """Filename globbing utility."""
import os import os
import fnmatch import fnmatch
...@@ -6,6 +6,11 @@ import regex ...@@ -6,6 +6,11 @@ import regex
def glob(pathname): 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 not has_magic(pathname):
if os.path.exists(pathname): if os.path.exists(pathname):
return [pathname] return [pathname]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment