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

@ -46,7 +46,7 @@ def fixConfigOption(section, option, value, silent=True):
for file_ in C.CONFIG_FILES[::-1]:
# we will eventually update the existing file with the highest priority, if it's a user personal file...
if not silent:
log.debug(_("Testing file %s") % file_)
log.debug(_(u"Testing file %s") % file_)
if os.path.isfile(file_):
if file_.startswith(os.path.expanduser('~')):
config.read([file_])
@ -63,7 +63,7 @@ def fixConfigOption(section, option, value, silent=True):
if not silent:
if option in ('passphrase',): # list here the options storing a password
value = '******'
log.warning(_("Config auto-update: %(option)s set to %(value)s in the file %(config_file)s") %
log.warning(_(u"Config auto-update: %(option)s set to %(value)s in the file %(config_file)s") %
{'option': option, 'value': value, 'config_file': target_file})