mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
This commit is contained in:
parent
ea47eaa395
commit
e6c5950af0
2 changed files with 6 additions and 0 deletions
|
@ -200,6 +200,9 @@ def samestat(s1, s2):
|
||||||
|
|
||||||
def ismount(path):
|
def ismount(path):
|
||||||
"""Test whether a path is a mount point"""
|
"""Test whether a path is a mount point"""
|
||||||
|
if islink(path):
|
||||||
|
# A symlink can never be a mount point
|
||||||
|
return False
|
||||||
try:
|
try:
|
||||||
s1 = os.lstat(path)
|
s1 = os.lstat(path)
|
||||||
if isinstance(path, bytes):
|
if isinstance(path, bytes):
|
||||||
|
|
|
@ -29,6 +29,9 @@ Extensions
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #1713: Fix os.path.ismount(), which returned true for symbolic links
|
||||||
|
across devices.
|
||||||
|
|
||||||
- Issue #8826: Properly load old-style "expires" attribute in http.cookies.
|
- Issue #8826: Properly load old-style "expires" attribute in http.cookies.
|
||||||
|
|
||||||
- Issue #1690103: Fix initial namespace for code run with trace.main().
|
- Issue #1690103: Fix initial namespace for code run with trace.main().
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue