Skip to content

Commit

Permalink
Fix StringIO import for the example in usage.rst
Browse files Browse the repository at this point in the history
For some reason people fixed the `print` call but not the import when #234 was brought up.

I also mentioned in in #369

Closes: #370
Pull-request: #370
Pull-request-sha: 8560bfe

Change-Id: I236eef05f5b45420035c522287fa66eb3cb21a00
  • Loading branch information
baluyotraf authored and sqla-tester committed Dec 1, 2022
1 parent 3596083 commit f61fd94
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions doc/build/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -517,4 +517,3 @@ API Reference
.. autofunction:: mako.exceptions.html_error_template

.. autofunction:: mako.exceptions.text_error_template

0 comments on commit f61fd94

Please sign in to comment.