diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-03-29 13:02:52 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-03-29 13:02:52 (GMT) |
commit | 48e2478329b6be67d7858174d146d65f6ccfe728 (patch) | |
tree | 13796013c5e115f3dc55e5d47b877301607d0fef | |
parent | 49595620e7abc14b40b8f0a039c3ca4e0aef4cb0 (diff) | |
download | cpython-48e2478329b6be67d7858174d146d65f6ccfe728.zip cpython-48e2478329b6be67d7858174d146d65f6ccfe728.tar.gz cpython-48e2478329b6be67d7858174d146d65f6ccfe728.tar.bz2 |
fix variable name #5595
-rw-r--r-- | Lib/ntpath.py | 2 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Lib/ntpath.py b/Lib/ntpath.py index 4b78d8d..ac928e1 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py @@ -257,7 +257,7 @@ lexists = exists def ismount(path): """Test whether a path is a mount point (defined as root of drive)""" unc, rest = splitunc(path) - seps = _get_bothseps(p) + seps = _get_bothseps(path) if unc: return rest in p[:0] + seps p = splitdrive(path)[1] @@ -43,6 +43,8 @@ Core and Builtins Library ------- +- Issue #5595: Fix UnboundedLocalError in ntpath.ismount(). + - Issue #1174606: Calling read() without arguments of an unbounded file (typically /dev/zero under Unix) could crash the interpreter. |