--- a/doc/source/pyke_syntax/kqb_syntax.txt
+++ b/doc/source/pyke_syntax/kqb_syntax.txt
@@ -412,7 +412,7 @@
 
     >>> engine = knowledge_engine.engine('doc.examples')
 
-    >>> from StringIO import StringIO
+    >>> from io import StringIO
     >>> import sys
     >>> class echo(object):
     ...     def __init__(self, f): self.f = f