Update of /cvsroot/pywin32/pywin32/win32/Demos/dde
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15490/Demos/dde
Modified Files:
Tag: py3k
ddeclient.py ddeserver.py
Log Message:
Changes to build for Python 3.0
Index: ddeclient.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/Demos/dde/ddeclient.py,v
retrieving revision 1.1
retrieving revision 1.1.4.1
diff -C2 -d -r1.1 -r1.1.4.1
*** ddeclient.py 2 Sep 1999 00:19:24 -0000 1.1
--- ddeclient.py 29 Aug 2008 04:59:24 -0000 1.1.4.1
***************
*** 1,4 ****
# 'Request' example added jjk 11/20/98
!
import win32ui
import dde
--- 1,4 ----
# 'Request' example added jjk 11/20/98
! import site ## Py3k bug 3279
import win32ui
import dde
***************
*** 16,19 ****
s = 'abcdefghi'
sl = conversation.Request(s)
! print 'length of "%s" is %s'%(s,sl)
--- 16,19 ----
s = 'abcdefghi'
sl = conversation.Request(s)
! print('length of "%s" is %s'%(s,sl))
Index: ddeserver.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/Demos/dde/ddeserver.py,v
retrieving revision 1.1
retrieving revision 1.1.4.1
diff -C2 -d -r1.1 -r1.1.4.1
*** ddeserver.py 2 Sep 1999 00:19:24 -0000 1.1
--- ddeserver.py 29 Aug 2008 04:59:24 -0000 1.1.4.1
***************
*** 1,4 ****
--- 1,6 ----
# 'Request' example added jjk 11/20/98
+ import site ## still not fixed in 3.0b3
+
import win32ui
from pywin.mfc import object
***************
*** 10,14 ****
def Exec(self, cmd):
! print "System Topic asked to exec", cmd
class MyOtherTopic(object.Object):
--- 12,16 ----
def Exec(self, cmd):
! print("System Topic asked to exec", cmd)
class MyOtherTopic(object.Object):
***************
*** 17,21 ****
def Exec(self, cmd):
! print "Other Topic asked to exec", cmd
class MyRequestTopic(object.Object):
--- 19,23 ----
def Exec(self, cmd):
! print("Other Topic asked to exec", cmd)
class MyRequestTopic(object.Object):
***************
*** 26,30 ****
def Request(self, aString):
! print "Request Topic asked to compute length of:", aString
return(str(len(aString)))
--- 28,32 ----
def Request(self, aString):
! print("Request Topic asked to compute length of:", aString)
return(str(len(aString)))
|