16 Aug
2004
16 Aug
'04
1:10 p.m.
here, you've defined inFile within the scope of powerData, but then you are using inFile outside the scope of powerData. indention matters. http://docs.python.org/tut/node6.html (4.6 Defining Functions) thanks, travis On Aug 15, 2004, at 5:33 PM, David Siedband wrote:
def powerData(self,REQUEST): import csv import urllib inFile = urllib.urlopen('http://www.davisenergy.com/zeh_data/A042304.DAT')
return inFile