From e4a58f80b508b8e52f965b33bb3ead15c3c936c8 Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Tue, 16 Apr 2013 07:20:31 +0000 Subject: [PATCH] Remove locals() from strings substitutions Fixes bug 1168988 Change-Id: Ifd1e7a027f16062ff35e777cf2d953f652a806a7 --- HACKING.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HACKING.rst b/HACKING.rst index 84e81af97..d3330c023 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 -------------------