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