]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merged revisions 70676 via svnmerge from
authorBenjamin Peterson <benjamin@python.org>
Sun, 29 Mar 2009 13:12:59 +0000 (13:12 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 29 Mar 2009 13:12:59 +0000 (13:12 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r70676 | benjamin.peterson | 2009-03-29 08:02:52 -0500 (Sun, 29 Mar 2009) | 1 line

  fix variable name #5595
........

Lib/ntpath.py
Misc/NEWS

index 4b78d8d223b6158059be27312ac8e03bc169fbe8..ac928e1a928d17c7b3377b27e13b506c0672098a 100644 (file)
@@ -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]
index c007f82c20a4ac70ac120aaa580415652a91a13d..b1e54e1f2498443358027cb069ba6bbf9ed26c4a 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -26,6 +26,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.