[openstack-dev] Use of local()

Sean Dague sdague at linux.vnet.ibm.com
Thu Feb 7 21:05:53 UTC 2013


On 02/07/2013 03:32 PM, Mark McLoughlin wrote:
>    _("The server with id %(s_id)s has no key %(m_key)s") % dict(s_id="1234", m_key="imageId")

Well, it's actually

(_("The server with id %(s_id)s has no key %(m_key)s") %
  dict(s_id="1234", m_key="imageId")

because of line length.

I'm not a huge fan of locals(), and would love to get rid of it largely 
to stop making pyflakes light up my emacs buffers errantly, but realize 
we're going to have a lot more line wrapping in the process.

	-Sean

-- 
Sean Dague
IBM Linux Technology Center
email: sdague at linux.vnet.ibm.com
alt-email: sldague at us.ibm.com




More information about the OpenStack-dev mailing list