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
|
|
@ -88,8 +88,8 @@ class XEP_0033(object):
|
|||
raise failure.Failure(exceptions.CancelError())
|
||||
if mess_data["to"] not in entities:
|
||||
expected = _(' or ').join([entity.userhost() for entity in entities])
|
||||
log.warning(_("Stanzas using XEP-0033 should be addressed to %(expected)s, not %(current)s!") % {'expected': expected, 'current': mess_data["to"]})
|
||||
log.warning(_("TODO: addressing has been fixed by the backend... fix it in the frontend!"))
|
||||
log.warning(_(u"Stanzas using XEP-0033 should be addressed to %(expected)s, not %(current)s!") % {'expected': expected, 'current': mess_data["to"]})
|
||||
log.warning(_(u"TODO: addressing has been fixed by the backend... fix it in the frontend!"))
|
||||
mess_data["to"] = list(entities)[0].userhostJID()
|
||||
element = mess_data['xml'].addElement('addresses', NS_ADDRESS)
|
||||
entries = [entry.split(':') for entry in mess_data['extra']['address'].split('\n') if entry != '']
|
||||
|
|
|
|||
Loading…
Reference in a new issue