few more comments

This commit is contained in:
Luke Rogers 2013-09-08 02:37:47 +12:00
parent b40b4640d8
commit 63cf1f0514

View file

@ -33,9 +33,10 @@ def steamcalc(inp):
except (http.HTTPError, http.URLError):
return "Could not get data for {}!".format(name)
csv_data = StringIO.StringIO(request)
csv_data = StringIO.StringIO(request) # we use StringIO because CSV can't read a string
reader = unicode_dictreader(csv_data)
# put the games in a list
games = []
for row in reader:
games.append(row)