16 Aug
2004
16 Aug
'04
12:05 p.m.
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