Message167299
The bz2 library in Python3.3b1 doesn't support iteration for text-mode properly. Example:
>>> f = bz2.open('access-log-0108.bz2')
>>> next(f) # Works
b'140.180.132.213 - - [24/Feb/2008:00:08:59 -0600] "GET /ply/ply.html HTTP/1.1" 200 97238\n'
>>> g = bz2.open('access-log-0108.bz2','rt')
>>> next(g) # Fails
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
StopIteration
>>> |
|
Date |
User |
Action |
Args |
2012-08-03 09:04:34 | dabeaz | set | recipients:
+ dabeaz |
2012-08-03 09:04:34 | dabeaz | set | messageid: <1343984674.35.0.733492369263.issue15546@psf.upfronthosting.co.za> |
2012-08-03 09:04:33 | dabeaz | link | issue15546 messages |
2012-08-03 09:04:33 | dabeaz | create | |
|