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

File:
1 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):
Note: See TracChangeset for help on using the changeset viewer.