[Zope] urllib.urlopen

Chris Withers chris at simplistix.co.uk
Mon Aug 16 08:05:15 EDT 2004


David Siedband wrote:

> I'm trying to grab a data file using urllib.urlopen
> 
> with this code:
> 
> def powerData(self,REQUEST):
>    import csv
>    import urllib
>    inFile =  
> urllib.urlopen('http://www.davisenergy.com/zeh_data/A042304.DAT')
> 
> return inFile

Is that return statement indented correctly? it should be at the same 
level as the import and inFile =

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope mailing list