Skip to content

Commit f61fd94

Browse files
baluyotrafsqla-tester
authored andcommitted
Fix StringIO import for the example in usage.rst
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
1 parent 3596083 commit f61fd94

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

doc/build/usage.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ render with it, using the :meth:`~.Template.render_context` method:
5353

5454
from mako.template import Template
5555
from mako.runtime import Context
56-
from StringIO import StringIO
56+
from io import StringIO
5757

5858
mytemplate = Template("hello, ${name}!")
5959
buf = StringIO()
@@ -517,4 +517,3 @@ API Reference
517517
.. autofunction:: mako.exceptions.html_error_template
518518

519519
.. autofunction:: mako.exceptions.text_error_template
520-

0 commit comments

Comments
 (0)