title: String formatting without index in python2.6
body: <p>I've got many thousands of lines of python code that has python2.7+ style string formatting (e.g. without indices in the <code>{}</code>s)</p>
  <pre><code>&quot;{} {}&quot;.format('foo', 'bar')
  </code></pre>
  <p>I need to run this code under python2.6 which <em>requires</em> the indices.</p>
  <p>I'm wondering if anyone knows of a painless way allow python2.6 to run this code. It'd be great if there was a <code>from __future__ import blah</code> solution to the problem. I don't see one. Something along those lines would be my first choice.</p>
  <p>A distant second would be some script that can automate the process of adding the indices, at least in the obvious cases:</p>
  <pre><code>&quot;{0} {1}&quot;.format('foo', 'bar')
  </code></pre>