massive (preventive) addition of 'u' (unicode) before the strings passed to logging functions
This commit is contained in:
parent
cc829beac7
commit
67ff77e5de
1 changed files with 272 additions and 271 deletions
|
|
@ -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']):
|
||||
|
|
|
|||
Loading…
Reference in a new issue