Ignore:
Timestamp:
Oct 18, 2008, 12:40:56 PM (14 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Convert:
svn:b33ecbfc-034c-dc11-8662-000475d9059e/trunk@113
Message:

Compatibility fixes for Twisted 8.0 and 8.1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/test/test_component.py

    r40 r41  
    1515from twisted.words.xish import domish
    1616
     17try:
     18    from twisted.words.protocols.jabber.ijabber import IXMPPHandlerCollection
     19    from twisted.words.protocols.jabber.xmlstream import XMPPHandler
     20except ImportError:
     21    from wokkel.subprotocols import IXMPPHandlerCollection, XMPPHandler
     22
    1723from wokkel import component
    1824from wokkel.generic import XmlPipe
     
    3137        """
    3238        L{component.InternalComponent} implements
    33         L{ijabber.IXMPPHandlerCollection}.
    34         """
    35         verifyObject(ijabber.IXMPPHandlerCollection, self.component)
     39        L{IXMPPHandlerCollection}.
     40        """
     41        verifyObject(IXMPPHandlerCollection, self.component)
    3642
    3743
     
    4349        events = []
    4450
    45         class TestHandler(xmlstream.XMPPHandler):
     51        class TestHandler(XMPPHandler):
    4652
    4753            def connectionInitialized(self):
     
    7076        events = []
    7177
    72         class TestHandler(xmlstream.XMPPHandler):
     78        class TestHandler(XMPPHandler):
    7379
    7480            def connectionLost(self, reason):
     
    9197        events = []
    9298
    93         class TestHandler(xmlstream.XMPPHandler):
     99        class TestHandler(XMPPHandler):
    94100
    95101            def connectionInitialized(self):
Note: See TracChangeset for help on using the changeset viewer.