Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ab096c9

Browse files
committed
New doc strings.
1 parent fd79566 commit ab096c9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Lib/glob.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
# Module 'glob' -- filename globbing.
1+
"""Filename globbing utility."""
22

33
import os
44
import fnmatch
55
import regex
66

77

88
def glob(pathname):
9+
"""Return a list of paths matching a pathname pattern.
10+
11+
The pattern may contain simple shell-style wildcards a la fnmatch.
12+
13+
"""
914
if not has_magic(pathname):
1015
if os.path.exists(pathname):
1116
return [pathname]

0 commit comments

Comments
 (0)