[clang-tools-extra] r176409 - Make gen_my_std.h.py compatible with python 2.5 too.

Sean Silva silvas at purdue.edu
Sun Mar 3 07:04:50 PST 2013


As I mentioned in the initial review for the patch for this code, using
string.Template <
http://docs.python.org/2/library/string.html#string.Template> 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.

-- Sean Silva
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130303/f3a89fdf/attachment.html>


More information about the cfe-commits mailing list