[Python-checkins] python/dist/src/Lib macpath.py,1.31.10.2,1.31.10.3
nnorwitz@users.sourceforge.net
nnorwitz@users.sourceforge.net
Sun, 02 Feb 2003 11:23:18 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv18473/Lib
Modified Files:
Tag: release22-maint
macpath.py
Log Message:
Backport:
revision 1.44
date: 2003/01/15 22:45:48; author: jackjansen; state: Exp; lines: +5 -0
Added ismount().
Fixes #661762, bugfix candidate.
Index: macpath.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/macpath.py,v
retrieving revision 1.31.10.2
retrieving revision 1.31.10.3
diff -C2 -d -r1.31.10.2 -r1.31.10.3
*** macpath.py 13 Jan 2003 19:29:35 -0000 1.31.10.2
--- macpath.py 2 Feb 2003 19:23:13 -0000 1.31.10.3
***************
*** 94,97 ****
--- 94,102 ----
def basename(s): return split(s)[1]
+ def ismount(s):
+ if not isabs(s):
+ return False
+ components = split(s)
+ return len(components) == 2 and components[1] == ''
def isdir(s):