diff src/plugins/plugin_xep_0050.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 74ddb4cc2ff9
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0050.py	Thu Apr 16 13:31:14 2015 +0200
+++ b/src/plugins/plugin_xep_0050.py	Thu Apr 16 14:57:57 2015 +0200
@@ -107,7 +107,7 @@
             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 @@
             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):