Skip to content

Commit

Permalink
New doc strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Apr 2, 1997
1 parent fd79566 commit ab096c9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Lib/glob.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# Module 'glob' -- filename globbing.
"""Filename globbing utility."""

import os
import fnmatch
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]
Expand Down

0 comments on commit ab096c9

Please sign in to comment.