Mercurial > libervia-backend
diff src/memory/memory.py @ 844:f3513c8cc2e6
misc: fix unnamed arguments in format strings
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 17 Feb 2014 14:58:26 +0100 |
parents | 9bac2fc74968 |
children | c2f6ada7858f |
line wrap: on
line diff
--- a/src/memory/memory.py Mon Feb 17 12:25:17 2014 +0100 +++ b/src/memory/memory.py Mon Feb 17 14:58:26 2014 +0100 @@ -473,8 +473,8 @@ return None if not self.checkSecurityLimit(node[1], security_limit): - warning(_("Trying to get parameter '%s' in category '%s' without authorization!!!" - % (name, category))) + warning(_("Trying to get parameter '%(param)s' in category '%(cat)s' without authorization!!!" + % {'param': name, 'cat': category})) return None if node[0] == GENERAL: @@ -720,8 +720,8 @@ return if not self.checkSecurityLimit(node[1], security_limit): - warning(_("Trying to set parameter '%s' in category '%s' without authorization!!!" - % (name, category))) + warning(_("Trying to set parameter '%(param)s' in category '%(cat)s' without authorization!!!" + % {'param': name, 'cat': category})) return if node[0] == GENERAL: