diff options
Diffstat (limited to 'Lib/glob.py')
-rw-r--r-- | Lib/glob.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/glob.py b/Lib/glob.py index d5e508a..4ba4138 100644 --- a/Lib/glob.py +++ b/Lib/glob.py @@ -13,7 +13,7 @@ def glob(pathname): """ if not has_magic(pathname): - if os.path.exists(pathname): + if os.path.lexists(pathname): return [pathname] else: return [] @@ -29,7 +29,7 @@ def glob(pathname): for dirname in list: if basename or os.path.isdir(dirname): name = os.path.join(dirname, basename) - if os.path.exists(name): + if os.path.lexists(name): result.append(name) else: result = [] |