[Python-checkins] python/dist/src/Lib macpath.py,1.43,1.44

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Wed, 15 Jan 2003 14:45:50 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv28460/Lib

Modified Files:
	macpath.py 
Log Message:
Added ismount().

Fixes #661762, bugfix candidate.


Index: macpath.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/macpath.py,v
retrieving revision 1.43
retrieving revision 1.44
diff -C2 -d -r1.43 -r1.44
*** macpath.py	3 Jan 2003 18:01:55 -0000	1.43
--- macpath.py	15 Jan 2003 22:45:48 -0000	1.44
***************
*** 85,88 ****
--- 85,93 ----
  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):