Ignore:
Timestamp:
Oct 3, 2016, 9:33:18 AM (4 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Message:

Replace basestring with StringType and add tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/pubsub.py

    r202 r212  
    1717from twisted.internet import defer
    1818from twisted.python import log
    19 from twisted.python.compat import iteritems, unicode
     19from twisted.python.compat import StringType, iteritems, unicode
    2020from twisted.words.protocols.jabber import jid, error
    2121from twisted.words.xish import domish
     
    182182            self['id'] = id
    183183        if payload is not None:
    184             if isinstance(payload, basestring):
     184            if isinstance(payload, StringType):
    185185                self.addRawXml(payload)
    186186            else:
Note: See TracChangeset for help on using the changeset viewer.