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
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue