Portable Python script across Python version

StringIO is obsoleted in Python3, replaced by io.BytesIO or io.StringIO depending on the use.

Differential Revision: https://reviews.llvm.org/D55196

llvm-svn: 350318
GitOrigin-RevId: f886c03e47092d1fad1998df0ddfcffa9e8c3d48
1 file changed