Ignore:
Timestamp:
Jan 22, 2012, 2:51:25 PM (8 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Message:

Cleanups leading up to Wokkel 0.7.0.

As we now depend on Twisted 10.0.0 or higher, the following classes and
interfaces were deprecated:

This also resolves all Pyflakes warnings, changes links for www.xmpp.org to
xmpp.org and fixes the copyright notice in LICENSE to include 2012.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/generic.py

    r103 r165  
    1515from twisted.words.protocols.jabber.xmlstream import toResponse
    1616from twisted.words.xish import domish, utility
    17 
    18 try:
    19     from twisted.words.xish.xmlstream import BootstrapMixin
    20 except ImportError:
    21     from wokkel.compat import BootstrapMixin
     17from twisted.words.xish.xmlstream import BootstrapMixin
    2218
    2319from wokkel.iwokkel import IDisco
     
    9490
    9591    This protocol is described in
    96     U{XEP-0092<http://www.xmpp.org/extensions/xep-0092.html>}.
     92    U{XEP-0092<http://xmpp.org/extensions/xep-0092.html>}.
    9793    """
    9894
     
    110106
    111107        query = response.addElement((NS_VERSION, "query"))
    112         name = query.addElement("name", content=self.name)
    113         version = query.addElement("version", content=self.version)
     108        query.addElement("name", content=self.name)
     109        query.addElement("version", content=self.version)
    114110        self.send(response)
    115111
Note: See TracChangeset for help on using the changeset viewer.