summaryrefslogtreecommitdiffstats
path: root/Lib/glob.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/glob.py')
-rw-r--r--Lib/glob.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/glob.py b/Lib/glob.py
index cd8859e6..d1a6ddd 100644
--- a/Lib/glob.py
+++ b/Lib/glob.py
@@ -533,7 +533,9 @@ class _PathGlobber(_GlobberBase):
"""Provides shell-style pattern matching and globbing for pathlib paths.
"""
- lexists = operator.methodcaller('exists', follow_symlinks=False)
+ @staticmethod
+ def lexists(path):
+ return path.info.exists(follow_symlinks=False)
@staticmethod
def scandir(path):