Skip to content

Commit 1a4ff1c

Browse files
committed
minor
1 parent d466c77 commit 1a4ff1c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎v3/name_lookup.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717

1818
print("Content-type: text/plain; charset=iso-8859-1\n")
1919

20-
for name, email in csv.reader(open('names.csv')):
20+
for line in open('names.csv'):
21+
toks = line.strip().split(',')
22+
name = toks[0].strip()
23+
email = toks[1].strip()
2124
if email == requested_email:
2225
print(json.dumps({'name': name, 'email': email}))
2326
sys.exit(0) # get out early

0 commit comments

Comments
 (0)