Commit b4e91aa3 authored by Stefan Behnel's avatar Stefan Behnel

Add missing import in doctest when the module is compiled (and StringIO has...

Add missing import in doctest when the module is compiled (and StringIO has become a global cdef variable).
parent 08ce728f
......@@ -23,6 +23,9 @@ EXAMPLE:
>>> b.getvalue().split()
['second', 'alpha', 'beta', 'gamma']
>>> try: from cStringIO import StringIO
... except ImportError: from io import StringIO
>>> i = StringIOTree()
>>> d.insert(i)
>>> _= i.write('inserted\n')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment