[stringtemplate-interest] Bug in PyST: 576s/StringIO/StringIO()/ language/ASTExpr.py

Roman Odaisky roma at qwertty.com
Fri Sep 5 03:36:36 PDT 2008


Looks like a typo.

Does PyST have a bugtracker?

--- language/ASTExpr.py 2008-09-05 13:33:27.000000000 +0300
+++ language/ASTExpr.py 2008-09-05 12:52:22.000000000 +0300
@@ -573,7 +573,7 @@
                             # template because the template must be written to
                             # a temp StringWriter so it can be formatted before
                             # being written to the real output.
-                            buf = StringIO
+                            buf = StringIO()
                             sw = this.getGroup().getStringTemplateWriter(buf)
                             o.write(sw)
                             n = out.write(renderer.toString(buf.getvalue(), self.formatString))

-- 
WBR
Roman.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2286 bytes
Desc: not available
Url : http://www.antlr.org:8080/pipermail/stringtemplate-interest/attachments/20080905/45f6f75c/attachment.bin 


More information about the stringtemplate-interest mailing list