Adding support for the with statement for StringIO.[1]