Update of /cvsroot/pywin32/pywin32/isapi
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv32005
Modified Files:
install.py
Log Message:
Removed old_split_path. I had left it only so one could track the new behavior against the previous behavior.
Index: install.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/isapi/install.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** install.py 17 Dec 2008 03:53:10 -0000 1.16
--- install.py 17 Dec 2008 20:31:51 -0000 1.17
***************
*** 197,234 ****
return server.adsPath
- def old_split_path(path):
- slash = path.rfind("/")
- if slash >= 0:
- parent = path[:slash]
- name = path[slash+1:]
- else:
- parent = ""
- name = path
- return parent, name
-
def split_path(path):
"""
! Get the parent path and basename
! >>> old_split_path('/') == split_path('/')
! True
! >>> old_split_path('') == split_path('')
! True
! >>> old_split_path('foo') == split_path('foo')
! True
! >>> old_split_path('/foo') == split_path('/foo')
! True
! >>> old_split_path('/foo/bar') == split_path('/foo/bar')
! True
! >>> old_split_path('foo/bar') == split_path('foo/bar')
! False
"""
if not path.startswith('/'): path = '/' + path
! return tuple(path.rsplit('/', 1))
def ReallyCreateDirectory(iis_dir, name, params):
--- 197,225 ----
return server.adsPath
def split_path(path):
"""
! Get the parent path and basename.
! >>> split_path('/')
! ['', '']
! >>> split_path('')
! ['', '']
! >>> split_path('foo')
! ['', 'foo']
! >>> split_path('/foo')
! ['', 'foo']
! >>> split_path('/foo/bar')
! ['/foo', 'bar']
!
! >>> split_path('foo/bar')
! ['/foo', 'bar']
"""
if not path.startswith('/'): path = '/' + path
! return path.rsplit('/', 1)
def ReallyCreateDirectory(iis_dir, name, params):
|