Changeset 199:bb63666ccec7 for wokkel


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

imported patch py3-ping.patch

Location:
wokkel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wokkel/ping.py

    r166 r199  
    1111"""
    1212
    13 from zope.interface import implements
     13from __future__ import division, absolute_import
     14
     15from zope.interface import implementer
    1416
    1517from twisted.words.protocols.jabber.error import StanzaError
     
    5759
    5860        if sender is not None:
    59             request['from'] = unicode(sender)
     61            request['from'] = sender.full()
    6062
    6163        d = request.send(entity.full())
     
    6567
    6668
     69@implementer(iwokkel.IDisco)
    6770class PingHandler(XMPPHandler):
    6871    """
     
    7174    This handler waits for XMPP Ping requests and sends a response.
    7275    """
    73 
    74     implements(iwokkel.IDisco)
    7576
    7677    def connectionInitialized(self):
  • wokkel/test/test_ping.py

    r96 r199  
    55Tests for L{wokkel.ping}.
    66"""
     7
     8from __future__ import division, absolute_import
    79
    810from zope.interface import verify
Note: See TracChangeset for help on using the changeset viewer.