massive (preventive) addition of 'u' (unicode) before the strings passed to logging functions

This commit is contained in:
souliane 2015-04-16 14:57:57 +02:00
commit 67ff77e5de

View file

@ -143,11 +143,11 @@ class XEP_0047(object):
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']):