Message25150
Logged In: YES
user_id=186532
How is test.bz2 not a valid bz2 file? The command line tool
"bzcat" or "bunzip2" can operate properly on it. Using
BZ2File("test.bz2").read() works properly, it's just the
readlines() call that breaks.
Try this out:
import bz2
bz2.BZ2File("test.bz2","w").write("testing123")
# This works fine
assert bz2.BZ2File("test.bz2").read() == "testing123"
# This raises a RuntimeError
assert bz2.BZ2File("test.bz2").readlines() == ["testing123"] |
|
Date |
User |
Action |
Args |
2007-08-23 14:31:15 | admin | link | issue1191043 messages |
2007-08-23 14:31:15 | admin | create | |
|