summaryrefslogtreecommitdiff
path: root/HACKING.rst
diff options
context:
space:
mode:
authorGary Kotton <gkotton@redhat.com>2013-04-16 07:20:31 +0000
committerGary Kotton <gkotton@redhat.com>2013-04-20 11:56:26 +0000
commitc117074a4b0d615f8350c8159fb180167a7dbabf (patch)
tree7857b1611349308929e6b73d4011438c789e832f /HACKING.rst
parentd04b3deafaa5b7ab9d54cc5fef86d0d1df37b046 (diff)
downloadneutron-c117074a4b0d615f8350c8159fb180167a7dbabf.tar.gz
Remove locals() from strings substitutions
Fixes bug 1168988 Change-Id: Ifd1e7a027f16062ff35e777cf2d953f652a806a7
Diffstat (limited to 'HACKING.rst')
-rw-r--r--HACKING.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/HACKING.rst b/HACKING.rst
index 84e81af97d..d3330c023a 100644
--- a/HACKING.rst
+++ b/HACKING.rst
@@ -190,6 +190,8 @@ Example::
msg = _("The server with id %(s_id)s has no key %(m_key)s")
LOG.error(msg % {"s_id": "1234", "m_key": "imageId"})
+Please do not use locals() for string substitutions.
+
Creating Unit Tests
-------------------