Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8819/tools
Modified Files:
browseProjects.py browser.py
Log Message:
Replace use of string module with string methods
Index: browser.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/tools/browser.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** browser.py 26 Feb 2008 02:22:49 -0000 1.9
--- browser.py 9 Aug 2008 16:47:08 -0000 1.10
***************
*** 125,129 ****
return "DocString"
def GetText(self):
! return string.strip(self.myobject)
def IsExpandable(self):
return 0
--- 125,129 ----
return "DocString"
def GetText(self):
! return self.myobject.strip()
def IsExpandable(self):
return 0
Index: browseProjects.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/tools/browseProjects.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** browseProjects.py 13 Jul 2004 05:29:53 -0000 1.2
--- browseProjects.py 9 Aug 2008 16:47:08 -0000 1.3
***************
*** 123,127 ****
ret.append(HLIDirectoryItem(filename, os.path.split(filename)[1]))
else:
! if string.lower(os.path.splitext(filename)[1]) in ['.py', '.pyw']:
ret.append(HLIModuleItem(filename))
return ret
--- 123,127 ----
ret.append(HLIDirectoryItem(filename, os.path.split(filename)[1]))
else:
! if os.path.splitext(filename)[1].lower() in ['.py', '.pyw']:
ret.append(HLIModuleItem(filename))
return ret
***************
*** 162,166 ****
def GetSubList(self):
paths = regutil.GetRegisteredNamedPath(self.projectName)
! pathList = string.split(paths,";")
if len(pathList)==1: # Single dir - dont bother putting the dir in
ret = MakePathSubList(pathList[0])
--- 162,166 ----
def GetSubList(self):
paths = regutil.GetRegisteredNamedPath(self.projectName)
! pathList = paths.split(";")
if len(pathList)==1: # Single dir - dont bother putting the dir in
ret = MakePathSubList(pathList[0])
|