diff src/tools/config.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 ddc7a39ff9d1
line wrap: on
line diff
--- a/src/tools/config.py	Thu Apr 16 13:31:14 2015 +0200
+++ b/src/tools/config.py	Thu Apr 16 14:57:57 2015 +0200
@@ -46,7 +46,7 @@
     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 @@
     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})