8000 Move to new pull request · python/cpython@e6cb4a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit e6cb4a3

Browse files
committed
Move to new pull request
1 parent a81dc6e commit e6cb4a3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Lib/posixpath.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,12 @@ def ismount(path):
202202
if stat.S_ISLNK(s1.st_mode):
203203
return False
204204

205-
parent = dirname(abspath(path))
205+
path = os.fspath(path)
206+
if isinstance(path, bytes):
207+
parent = join(path, b'..')
208+
else:
209+
parent = join(path, '..')
210+
parent = realpath(parent)
206211
try:
207212
s2 = os.lstat(parent)
208213
except (OSError, ValueError):

0 commit comments

Comments
 (0)
0