8000 Speedup `posixpath.ismount` · python/cpython@2a055ba · GitHub
[go: up one dir, main page]

Skip to content

Commit 2a055ba

Browse files
committed
Speedup posixpath.ismount
1 parent abfe46c commit 2a055ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/posixpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def ismount(path):
199199
if stat.S_ISLNK(s1.st_mode):
200200
return False
201201

202-
parent = realpath(dirname(path))
202+
parent = dirname(abspath(path))
203203
try:
204204
s2 = os.lstat(parent)
205205
except (OSError, ValueError):

0 commit comments

Comments
 (0)
0