Message10076
This bug existed in Jython 2.5 as well. FWIW, here's a workaround.
# Jython's open() cannot read the /proc filesystem
def _readfile(self, fn):
f = os.open(fn, os.O_RDONLY)
try:
stream = f.asInputStream()
out = []
try:
while 1:
out.append(chr(stream.read()))
except Exception:
pass
return ''.join(out)
finally:
f.close() |
|
Date |
User |
Action |
Args |
2015-05-24 10:52:43 | jdemoor | set | messageid: <1432464763.41.0.238828644994.issue2358@psf.upfronthosting.co.za> |
2015-05-24 10:52:43 | jdemoor | set | recipients:
+ jdemoor, dstromberg |
2015-05-24 10:52:43 | jdemoor | link | issue2358 messages |
2015-05-24 10:52:42 | jdemoor | create | |
|