Remove locals() from strings substitutions
Fixes bug 1168988 Change-Id: Ifd1e7a027f16062ff35e777cf2d953f652a806a7
This commit is contained in:
parent
b459131131
commit
e4a58f80b5
@ -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
|
||||||
-------------------
|
-------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user