This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients eryksun, maubp, r.david.murray
Date 2017-04-07.18:23:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1491589424.15.0.0667227280552.issue30012@psf.upfronthosting.co.za>
In-reply-to
Content
In Python 3, gzip.open(filename, "rt") returns a TextIOWrapper using the system's default encoding. The decoded output is potentially very different from the byte string returned by 'text mode' in Python 2, even if using "rt" mode didn't result in the nonsensical "rtb" mode. I suggest using the default binary mode, and manually wrapping the file in an io.TextIOWrapper.
History
Date User Action Args
2017-04-07 18:23:44eryksunsetrecipients: + eryksun, r.david.murray, maubp
2017-04-07 18:23:44eryksunsetmessageid: <1491589424.15.0.0667227280552.issue30012@psf.upfronthosting.co.za>
2017-04-07 18:23:44eryksunlinkissue30012 messages
2017-04-07 18:23:44eryksuncreate