massive (preventive) addition of 'u' (unicode) before the strings passed to logging functions

This commit is contained in:
souliane 2015-04-16 14:57:57 +02:00
commit 67ff77e5de

View file

@ -60,9 +60,9 @@ class TriggerManager(object):
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)