Update of /cvsroot/pywin32/pywin32/com/win32comext/axscript/test
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv23408/com/win32comext/axscript/test
Modified Files:
leakTest.py testHost4Dbg.py
Log Message:
remove use of string module
Index: testHost4Dbg.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/axscript/test/testHost4Dbg.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** testHost4Dbg.py 1 Sep 1999 23:12:51 -0000 1.1
--- testHost4Dbg.py 4 Dec 2008 03:38:20 -0000 1.2
***************
*** 1,3 ****
! import string, os, sys, traceback
from win32com.axscript import axscript
from win32com.axscript.server import axsite
--- 1,3 ----
! import os, sys, traceback
from win32com.axscript import axscript
from win32com.axscript.server import axsite
***************
*** 24,30 ****
_public_methods_ = [ 'echo', 'msgbox' ]
def echo(self, *args):
! print string.join(map(str, args))
def msgbox(self, *args):
! msg = string.join(map(str, args))
win32ui.MessageBox(msg)
--- 24,30 ----
_public_methods_ = [ 'echo', 'msgbox' ]
def echo(self, *args):
! print ''.join(map(str, args))
def msgbox(self, *args):
! msg = ''.join(map(str, args))
win32ui.MessageBox(msg)
Index: leakTest.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/axscript/test/leakTest.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** leakTest.py 27 Nov 2008 03:53:25 -0000 1.2
--- leakTest.py 4 Dec 2008 03:38:20 -0000 1.3
***************
*** 1,3 ****
! import string, sys
from win32com.axscript.server.error import Exception
from win32com.axscript import axscript
--- 1,3 ----
! import sys
from win32com.axscript.server.error import Exception
from win32com.axscript import axscript
***************
*** 19,23 ****
if st is None: st = ""
text = st + "\n" + (" " * (char-1)) + "^" + "\n" + exc[2]
! for line in string.split(text,"\n"):
print " >" + line
--- 19,23 ----
if st is None: st = ""
text = st + "\n" + (" " * (char-1)) + "^" + "\n" + exc[2]
! for line in text.splitlines():
print " >" + line
***************
*** 37,41 ****
def echo(self, *args):
! self.last = string.join(map(str, args))
if self.verbose:
for arg in args:
--- 37,41 ----
def echo(self, *args):
! self.last = ''.join(map(str, args))
if self.verbose:
for arg in args:
|