diff src/plugins/plugin_xep_0020.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 d04d7402b8e9
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0020.py	Thu Apr 16 13:31:14 2015 +0200
+++ b/src/plugins/plugin_xep_0020.py	Thu Apr 16 14:57:57 2015 +0200
@@ -69,7 +69,7 @@
             values = form.fields[field].values
             result[field] = values[0] if values else None
             if len(values) > 1:
-                log.warning(_("More than one value choosed for %s, keeping the first one") % field)
+                log.warning(_(u"More than one value choosed for %s, keeping the first one") % field)
         return result
 
     def negociate(self, feature_elt, form_type, negociable_values):