commit | ca99c2ce75ec3b64fa483e800c6739a7851b468d | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Jan 19 22:25:59 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Jan 19 22:25:59 1998 +0000 |
tree | 84ec3a8a9200a25ec8c4f9313617b3e8768625ed | |
parent | 29c4688659577ffa12698dadef7de47dd784a5f3 [diff] |
Fix to ismount(). Can't remember who told me this.
diff --git a/Lib/ntpath.py b/Lib/ntpath.py index 0d7ef65..324ff2e 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py
@@ -223,8 +223,9 @@ # XXX This degenerates in: 'is this the root?' on DOS def ismount(path): - """Test whether a path is a mount point""" - return isabs(splitdrive(path)[1]) + """Test whether a path is a mount point (defined as root of drive)""" + p = splitdrive(path)[1] + return len(p)==1 and p[0] in '/\\' # Directory tree walk.