source:
ralphm-patches/py3-examples.patch
Last change on this file was 78:361e2111a663, checked in by Ralph Meijer <ralphm@…>, 6 years ago | |
---|---|
File size: 865 bytes |
-
doc/examples/echo_server.tac
# HG changeset patch # Parent f46b53ebfea79c12dd9d7f0b81b2762c7008614c diff --git a/doc/examples/echo_server.tac b/doc/examples/echo_server.tac
a b 8 8 """ 9 9 10 10 from twisted.application import service, strports 11 from twisted.python.compat import unicode 11 12 from twisted.words.protocols.jabber.xmlstream import toResponse 12 13 from wokkel import component, server, xmppim 13 14 -
doc/examples/pinger.py
diff --git a/doc/examples/pinger.py b/doc/examples/pinger.py
a b 15 15 16 16 def connectionInitialized(self): 17 17 def cb(response): 18 print "*** Pong ***"18 print("*** Pong ***") 19 19 20 print "*** Ping ***"20 print("*** Ping ***") 21 21 d = self.ping(self.entity, sender=self.sender) 22 22 d.addCallback(cb)
Note: See TracBrowser
for help on using the repository browser.