mirror of
https://github.com/python/cpython.git
synced 2025-09-21 16:10:33 +00:00
fix variable name #5595
This commit is contained in:
parent
49595620e7
commit
48e2478329
2 changed files with 3 additions and 1 deletions
|
@ -257,7 +257,7 @@ lexists = exists
|
||||||
def ismount(path):
|
def ismount(path):
|
||||||
"""Test whether a path is a mount point (defined as root of drive)"""
|
"""Test whether a path is a mount point (defined as root of drive)"""
|
||||||
unc, rest = splitunc(path)
|
unc, rest = splitunc(path)
|
||||||
seps = _get_bothseps(p)
|
seps = _get_bothseps(path)
|
||||||
if unc:
|
if unc:
|
||||||
return rest in p[:0] + seps
|
return rest in p[:0] + seps
|
||||||
p = splitdrive(path)[1]
|
p = splitdrive(path)[1]
|
||||||
|
|
|
@ -43,6 +43,8 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #5595: Fix UnboundedLocalError in ntpath.ismount().
|
||||||
|
|
||||||
- Issue #1174606: Calling read() without arguments of an unbounded file
|
- Issue #1174606: Calling read() without arguments of an unbounded file
|
||||||
(typically /dev/zero under Unix) could crash the interpreter.
|
(typically /dev/zero under Unix) could crash the interpreter.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue