[Biopython-dev] Bug in urllib of macpython

Yair Benita Y.Benita at pharm.uu.nl
Thu Jan 24 04:17:08 EST 2002


on 23/1/2002 22:27, Jeffrey Chang at jchang at smi.stanford.edu wrote:

> Doing a quick grep through the .py files in the current CVS, it looks
> like the only other file to use it is FormatIO.
> 
> What is your workaround?

In the begging I had a while loop that waits till the file is fully
downloaded. Now I have an easier solution:

Instead of:
handle = urllib.urlopen(fullcgi)

I use:
handle = open(urllib.urlretrieve(fullcgi)[0])

It appears to work fine now.

Yair
-- 
Yair Benita
Pharmaceutical Proteomics
Utrecht University




More information about the Biopython-dev mailing list