summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaf Baluyot <baluyotraf@outlook.com>2022-12-01 17:14:42 -0500
committersqla-tester <sqla-tester@sqlalchemy.org>2022-12-01 17:14:42 -0500
commitf61fd94e47138cc6067a474cf43423237d41fff5 (patch)
tree2da7478878b88824dad1cb2cc5cc4a0903ac50de
parent359608348dc434f9fef913916b9f98792ab57f9c (diff)
downloadmako-f61fd94e47138cc6067a474cf43423237d41fff5.tar.gz
Fix StringIO import for the example in usage.rst
For some reason people fixed the `print` call but not the import when https://github.com/sqlalchemy/mako/issues/234 was brought up. I also mentioned in in https://github.com/sqlalchemy/mako/issues/369 Closes: #370 Pull-request: https://github.com/sqlalchemy/mako/pull/370 Pull-request-sha: 8560bfed22f11b7edb5d2ac2e5cfc6a7bd59b718 Change-Id: I236eef05f5b45420035c522287fa66eb3cb21a00
-rw-r--r--doc/build/usage.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/build/usage.rst b/doc/build/usage.rst
index c439c35..22b6bac 100644
--- a/doc/build/usage.rst
+++ b/doc/build/usage.rst
@@ -53,7 +53,7 @@ render with it, using the :meth:`~.Template.render_context` method:
from mako.template import Template
from mako.runtime import Context
- from StringIO import StringIO
+ from io import StringIO
mytemplate = Template("hello, ${name}!")
buf = StringIO()
@@ -517,4 +517,3 @@ API Reference
.. autofunction:: mako.exceptions.html_error_template
.. autofunction:: mako.exceptions.text_error_template
-