Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/Demos/app
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8780/app
Modified Files:
basictimerapp.py customprint.py
Log Message:
Replace use of string module with string methods
Index: customprint.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/Demos/app/customprint.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** customprint.py 28 Oct 1999 02:11:23 -0000 1.2
--- customprint.py 9 Aug 2008 16:46:40 -0000 1.3
***************
*** 175,179 ****
strMag = self.magCtl.GetWindowText()
try:
! self['mag'] = string.atoi(strMag)
except:
pass
--- 175,179 ----
strMag = self.magCtl.GetWindowText()
try:
! self['mag'] = int(strMag)
except:
pass
Index: basictimerapp.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/Demos/app/basictimerapp.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** basictimerapp.py 10 Dec 2006 21:51:10 -0000 1.3
--- basictimerapp.py 9 Aug 2008 16:46:40 -0000 1.4
***************
*** 85,89 ****
sys.stderr = self.oldErr
def write(self, str):
! s = string.strip(str)
if len(s):
if self.bHaveSetPrompt1:
--- 85,89 ----
sys.stderr = self.oldErr
def write(self, str):
! s = str.strip()
if len(s):
if self.bHaveSetPrompt1:
|