diff src/plugins/plugin_xep_0047.py @ 1409:3265a2639182

massive (preventive) addition of 'u' (unicode) before the strings passed to logging functions
author souliane <souliane@mailoo.org>
date Thu, 16 Apr 2015 14:57:57 +0200
parents 069ad98b360d
children 7b0fcefd52d4
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0047.py	Thu Apr 16 13:31:14 2015 +0200
+++ b/src/plugins/plugin_xep_0047.py	Thu Apr 16 14:57:57 2015 +0200
@@ -143,11 +143,11 @@
         sid = open_elt.getAttribute('sid')
         stanza = open_elt.getAttribute('stanza', 'iq')
         if not sid or not block_size or int(block_size) > 65535:
-            log.warning(_("malformed IBB transfer: %s" % IQ['id']))
+            log.warning(_(u"malformed IBB transfer: %s" % IQ['id']))
             self.sendNotAcceptableError(IQ['id'], IQ['from'], client.xmlstream)
             return
         if not sid in client.xep_0047_current_stream:
-            log.warning(_("Ignoring unexpected IBB transfer: %s" % sid))
+            log.warning(_(u"Ignoring unexpected IBB transfer: %s" % sid))
             self.sendNotAcceptableError(IQ['id'], IQ['from'], client.xmlstream)
             return
         if client.xep_0047_current_stream[sid]["from"] != jid.JID(IQ['from']):