<div dir="ltr">As I mentioned in the initial review for the patch for this code, using string.Template <<a href="http://docs.python.org/2/library/string.html#string.Template">http://docs.python.org/2/library/string.html#string.Template</a>> is going to be more compatible (2.4-3.x) and more readable ($foo rather than $(0) or {0}). While you're at it, since these are exact strings to be written, you can use sys.stdout.write() (instead print) and then all this code should be compatible 2.4-3.x.<div>
<br></div><div style>-- Sean Silva</div></div>