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
|
|
@ -107,7 +107,7 @@ class AdHocCommand(XMPPHandler):
|
|||
try:
|
||||
allowed.update(self.client.roster.getJidsFromGroup(group))
|
||||
except exceptions.UnknownGroupError:
|
||||
log.warning(_("The groups [%(group)s] is unknown for profile [%(profile)s])" % {'group':group, 'profile':self.client.profile}))
|
||||
log.warning(_(u"The groups [%(group)s] is unknown for profile [%(profile)s])" % {'group':group, 'profile':self.client.profile}))
|
||||
if requestor.userhostJID() in allowed:
|
||||
return True
|
||||
return False
|
||||
|
|
@ -254,7 +254,7 @@ class XEP_0050(object):
|
|||
return C.XMLUI_DATA_LVL_WARNING
|
||||
else:
|
||||
if type_ != 'info':
|
||||
log.warning(_("Invalid note type [%s], using info") % type_)
|
||||
log.warning(_(u"Invalid note type [%s], using info") % type_)
|
||||
return C.XMLUI_DATA_LVL_INFO
|
||||
|
||||
def _mergeNotes(self, notes):
|
||||
|
|
|
|||
Loading…
Reference in a new issue