[Teammetrics-discuss] Error in liststat.py

Sukhbir Singh sukhbir.in at gmail.com
Mon Aug 8 19:10:48 UTC 2011


Hi,

> When doing so I realised that *all* mboxes from alioth are fetched from
> scratch as *.gz.  The import process just leaves the uncompressed
> mboxes.  I wonder whether there is a chance to "gzip.open('file.gz')" as
> described in[1] to transparently work on gzip files.

Yes, but mailbox.mbox expects a file object as the argument and in
case we directly want to use the gzip, then I have to convert the
string to a StringIO object and then pass it to mailbox.mbox as is
obvious. So if you don't want the mbox archives at all, I can do that
but then it will involve changing the code at many parts and so we
should just let it be :) Create, parse and later delete if you want.



More information about the Teammetrics-discuss mailing list