Mercurial > libervia-backend
diff src/tools/trigger.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 | d17772b0fe22 |
line wrap: on
line diff
--- a/src/tools/trigger.py Thu Apr 16 13:31:14 2015 +0200 +++ b/src/tools/trigger.py Thu Apr 16 14:57:57 2015 +0200 @@ -60,9 +60,9 @@ self.__triggers[point_name] = [] if priority != 0 and priority in [trigger_tuple[0] for trigger_tuple in self.__triggers[point_name]]: if priority in (self.MIN_PRIORITY, self.MAX_PRIORITY): - log.warning(_("There is already a bound priority [%s]") % point_name) + log.warning(_(u"There is already a bound priority [%s]") % point_name) else: - log.debug(_("There is already a trigger with the same priority [%s]") % point_name) + log.debug(_(u"There is already a trigger with the same priority [%s]") % point_name) self.__triggers[point_name].append((priority, callback)) self.__triggers[point_name].sort(key=lambda trigger_tuple: trigger_tuple[0], reverse=True)