From: Benjamin Peterson Date: Sun, 29 Mar 2009 13:02:52 +0000 (+0000) Subject: fix variable name #5595 X-Git-Tag: v3.1a2~180 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=48e2478329b6be67d7858174d146d65f6ccfe728;p=python fix variable name #5595 --- diff --git a/Lib/ntpath.py b/Lib/ntpath.py index 4b78d8d223..ac928e1a92 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] diff --git a/Misc/NEWS b/Misc/NEWS index c6f9594170..9422ef1dd2 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -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.