File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -533,7 +533,9 @@ class _PathGlobber(_GlobberBase):
533533 """Provides shell-style pattern matching and globbing for pathlib paths.
534534 """
535535
536- lexists = operator .methodcaller ('exists' , follow_symlinks = False )
536+ @staticmethod
537+ def lexists (path ):
538+ return path .info .exists (follow_symlinks = False )
537539
538540 @staticmethod
539541 def scandir (path ):
Original file line number Diff line number Diff line change @@ -1107,7 +1107,7 @@ def test_glob_posix(self):
11071107 p = P (self .base )
11081108 q = p / "FILEa"
11091109 given = set (p .glob ("FILEa" ))
1110- expect = {q } if q .exists () else set ()
1110+ expect = {q } if q .info . exists () else set ()
11111111 self .assertEqual (given , expect )
11121112 self .assertEqual (set (p .glob ("FILEa*" )), set ())
11131113
You can’t perform that action at this time.
0 commit comments