[pywin32-checkins] pywin32/com/win32com/demos connect.py, 1.2.4.2, 1.2.4.3
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-11-27 04:58:47
|
Update of /cvsroot/pywin32/pywin32/com/win32com/demos In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv1302/com/win32com/demos Modified Files: Tag: py3k connect.py Log Message: Almost all files in py3k branch are now in py3k syntax - but work remains Index: connect.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/demos/connect.py,v retrieving revision 1.2.4.2 retrieving revision 1.2.4.3 diff -C2 -d -r1.2.4.2 -r1.2.4.3 *** connect.py 26 Nov 2008 09:03:29 -0000 1.2.4.2 --- connect.py 27 Nov 2008 04:58:41 -0000 1.2.4.3 *************** *** 58,62 **** raise RuntimeError("Sent %r, but got back %r" % (val, client.last_event_arg)) if verbose: ! print "Sent and received %r" % val # A simple test script for all this. --- 58,62 ---- raise RuntimeError("Sent %r, but got back %r" % (val, client.last_event_arg)) if verbose: ! print("Sent and received %r" % val) # A simple test script for all this. *************** *** 71,80 **** connection.Connect(server, client, IID_IConnectDemoEvents) CheckEvent(server, client, "Hello", verbose) ! CheckEvent(server, client, "Here is a null>"+chr(0)+"<", verbose) ! CheckEvent(server, client, u"Here is a null>"+unichr(0)+"<", verbose) ! val = u"test-\xe0\xf2" # 2 extended characters. CheckEvent(server, client, val, verbose) if verbose: ! print "Everything seemed to work!" # Aggressive memory leak checking (ie, do nothing!) :-) All should cleanup OK??? --- 71,80 ---- connection.Connect(server, client, IID_IConnectDemoEvents) CheckEvent(server, client, "Hello", verbose) ! CheckEvent(server, client, b"Here is a null>\x00<", verbose) ! CheckEvent(server, client, "Here is a null>\x00<", verbose) ! val = "test-\xe0\xf2" # 2 extended characters. CheckEvent(server, client, val, verbose) if verbose: ! print("Everything seemed to work!") # Aggressive memory leak checking (ie, do nothing!) :-) All should cleanup OK??? |