Add truncate() method to StringIO objects.

This closes SourceForge bug #115527.
1 file changed