Message291303
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. |
|
Date |
User |
Action |
Args |
2017-04-07 22:13:25 | maubp | set | recipients:
+ maubp, r.david.murray, eryksun |
2017-04-07 22:13:25 | maubp | set | messageid: <1491603205.46.0.764267388363.issue30012@psf.upfronthosting.co.za> |
2017-04-07 22:13:25 | maubp | link | issue30012 messages |
2017-04-07 22:13:25 | maubp | create | |
|