We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b7e9f6 commit 166d1f2Copy full SHA for 166d1f2
Lib/ntpath.py
@@ -294,7 +294,9 @@ def ismount(path):
294
if _getvolumepathname:
295
try:
296
# The path is a mount point if it's a mounted volume.
297
- return path.rstrip(seps).casefold() == _getvolumepathname(path).rstrip(seps).casefold()
+ x = path.rstrip(seps)
298
+ y = _getvolumepathname(path).rstrip(seps)
299
+ return x.casefold() == y.casefold()
300
except (OSError, FileNotFoundError):
301
return False
302
else:
0 commit comments