diff options
Diffstat (limited to 'src/common/xmpp/session.py')
-rw-r--r-- | src/common/xmpp/session.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/xmpp/session.py b/src/common/xmpp/session.py index 28f2f0bdc..125eb087a 100644 --- a/src/common/xmpp/session.py +++ b/src/common/xmpp/session.py @@ -141,7 +141,7 @@ class Session: If you just want to shedule regular stanza for delivery use enqueue method. """ if isinstance(chunk,Node): chunk = chunk.__str__().encode('utf-8') - elif type(chunk)==type(u''): chunk = chunk.encode('utf-8') + elif isinstance(chunk, unicode): chunk = chunk.encode('utf-8') self.enqueue(chunk) def enqueue(self,stanza): @@ -349,4 +349,4 @@ class Session: requires stream re-start so this state can have non-linear changes. """ if self._stream_state<newstate: self._stream_state=newstate -# vim: se ts=3:
\ No newline at end of file +# vim: se ts=3: |