Merge "Remove locals() from strings substitutions"

This commit is contained in:
Jenkins 2013-04-21 18:52:06 +00:00 committed by Gerrit Code Review
commit 6c479c1877

View File

@ -190,6 +190,8 @@ Example::
msg = _("The server with id %(s_id)s has no key %(m_key)s") msg = _("The server with id %(s_id)s has no key %(m_key)s")
LOG.error(msg % {"s_id": "1234", "m_key": "imageId"}) LOG.error(msg % {"s_id": "1234", "m_key": "imageId"})
Please do not use locals() for string substitutions.
Creating Unit Tests Creating Unit Tests
------------------- -------------------