Changeset 197:2a961d1d470f for wokkel


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

imported patch py3-test-helpers.patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/test/helpers.py

    r186 r197  
    66"""
    77
     8from __future__ import division, absolute_import
     9
    810from twisted.internet import defer
     11from twisted.python.compat import iteritems
    912from twisted.words.xish import xpath
    1013from twisted.words.xish.utility import EventDispatcher
     
    3538        u'<presence/>'
    3639        >>> def cb(stanza):
    37         ...     print "Got: %r" stanza.toXml()
     40        ...     print("Got: %r" stanza.toXml())
    3841        >>> stub.xmlstream.addObserver('/presence')
    3942        >>> stub.send(domish.Element((None, 'presence')))
     
    8487        handler = None
    8588        iq = parseXml(xml)
    86         for queryString, method in self.service.iqHandlers.iteritems():
     89        for queryString, method in iteritems(self.service.iqHandlers):
    8790            if xpath.internQuery(queryString).matches(iq):
    8891                handler = getattr(self.service, method)
Note: See TracChangeset for help on using the changeset viewer.