Changeset 207:3e9d00891fc4


Ignore:
Timestamp:
Oct 3, 2016, 8:49:10 AM (3 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
rebase_source:
72426195c422a1acb451228628e405f76c23d516
Message:

imported patch py3-examples.patch

Location:
doc/examples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doc/examples/echo_server.tac

    r69 r207  
    99
    1010from twisted.application import service, strports
     11from twisted.python.compat import unicode
    1112from twisted.words.protocols.jabber.xmlstream import toResponse
    1213from wokkel import component, server, xmppim
  • doc/examples/pinger.py

    r65 r207  
    1616    def connectionInitialized(self):
    1717        def cb(response):
    18             print "*** Pong ***"
     18            print("*** Pong ***")
    1919
    20         print "*** Ping ***"
     20        print("*** Ping ***")
    2121        d = self.ping(self.entity, sender=self.sender)
    2222        d.addCallback(cb)
Note: See TracChangeset for help on using the changeset viewer.