[#]TIL In Python 2.x io.StringIO() is not a substitute for StringIO.StringIO(). The io module is intentionally stricter about byte strings vs textual (unicode) strings. StringIO.StringIO() is loosey goosey, accepting both https://gist.github.com/moreati/66d88c58000fc5cc2e67c254bb5d0e53 I probably knew this years ago, but forgot.
=> More informations about this toot | View the thread | More toots from alex@moreati.org.uk
=> View til tag This content has been proxied by September (ba2dc).Proxy Information
text/gemini