We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd79566 commit ab096c9Copy full SHA for ab096c9
1 file changed
Lib/glob.py
@@ -1,11 +1,16 @@
1
-# Module 'glob' -- filename globbing.
+"""Filename globbing utility."""
2
3
import os
4
import fnmatch
5
import regex
6
7
8
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
+ """
14
if not has_magic(pathname):
15
if os.path.exists(pathname):
16
return [pathname]
0 commit comments