Update of /cvsroot/pywin32/pywin32/com/win32com/test
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv4678/com/win32com/test
Modified Files:
Tag: py3k
testGIT.py testPyComTest.py
Log Message:
many more py3k syntax improvements thanks to 2to3
Index: testGIT.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/test/testGIT.py,v
retrieving revision 1.1.4.2
retrieving revision 1.1.4.3
diff -C2 -d -r1.1.4.2 -r1.1.4.3
*** testGIT.py 27 Nov 2008 04:58:41 -0000 1.1.4.2
--- testGIT.py 4 Dec 2008 07:32:05 -0000 1.1.4.3
***************
*** 22,26 ****
"""
! import thread, traceback
import win32com.client
import win32event, win32api
--- 22,26 ----
"""
! import _thread, traceback
import win32com.client
import win32event, win32api
***************
*** 78,82 ****
for i in range(numThreads):
hEvent = win32event.CreateEvent(None, 0, 0, None)
! thread.start_new(TestInterpInThread, (hEvent, cookie))
ret.append(hEvent)
return ret
--- 78,82 ----
for i in range(numThreads):
hEvent = win32event.CreateEvent(None, 0, 0, None)
! _thread.start_new(TestInterpInThread, (hEvent, cookie))
ret.append(hEvent)
return ret
Index: testPyComTest.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/test/testPyComTest.py,v
retrieving revision 1.32.2.6
retrieving revision 1.32.2.7
diff -C2 -d -r1.32.2.6 -r1.32.2.7
*** testPyComTest.py 4 Dec 2008 05:08:41 -0000 1.32.2.6
--- testPyComTest.py 4 Dec 2008 07:32:05 -0000 1.32.2.7
***************
*** 510,515 ****
def NullThreadFunc():
pass
! import thread
! thread.start_new( NullThreadFunc, () )
if "-v" in sys.argv: verbose = 1
--- 510,515 ----
def NullThreadFunc():
pass
! import _thread
! _thread.start_new( NullThreadFunc, () )
if "-v" in sys.argv: verbose = 1
|