[pywin32-checkins] pywin32/com/win32com/demos connect.py,1.5,1.6
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2009-01-08 03:36:29
|
Update of /cvsroot/pywin32/pywin32/com/win32com/demos In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv3523/com/win32com/demos Modified Files: connect.py Log Message: py3k-friendly checking of bytes and unicode Index: connect.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/demos/connect.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** connect.py 27 Nov 2008 05:40:39 -0000 1.5 --- connect.py 8 Jan 2009 03:36:24 -0000 1.6 *************** *** 10,13 **** --- 10,14 ---- import win32com.server.connect from win32com.server.exception import Exception + from pywin32_testutil import str2bytes # This is the IID of the Events interface both Client and Server support. *************** *** 71,75 **** connection.Connect(server, client, IID_IConnectDemoEvents) CheckEvent(server, client, "Hello", verbose) ! CheckEvent(server, client, "Here is a null>\x00<", verbose) CheckEvent(server, client, u"Here is a null>\x00<", verbose) val = u"test-\xe0\xf2" # 2 extended characters. --- 72,76 ---- connection.Connect(server, client, IID_IConnectDemoEvents) CheckEvent(server, client, "Hello", verbose) ! CheckEvent(server, client, str2bytes("Here is a null>\x00<"), verbose) CheckEvent(server, client, u"Here is a null>\x00<", verbose) val = u"test-\xe0\xf2" # 2 extended characters. |