Add truncate() method to StringIO objects.
Add truncate() method to StringIO objects.

This closes SourceForge bug #115527.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator