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 maubp
Recipients eryksun, maubp, r.david.murray
Date 2017-04-07.22:13:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1491603205.46.0.764267388363.issue30012@psf.upfronthosting.co.za>
In-reply-to
Content
A workaround for my use case is even simpler, something like this:

try:
    handle = gzip.open(filename, "rt")
except ValueError:
    # Workaround for Python 2.7 under Windows
    handle = gzip.open(filename, "r")
    
However, even this is troublesome for use in documentation intended to work on Python 2 and 3, over Linux, Mac and Windows.
History
Date User Action Args
2017-04-07 22:13:25maubpsetrecipients: + maubp, r.david.murray, eryksun
2017-04-07 22:13:25maubpsetmessageid: <1491603205.46.0.764267388363.issue30012@psf.upfronthosting.co.za>
2017-04-07 22:13:25maubplinkissue30012 messages
2017-04-07 22:13:25maubpcreate