tman
unread,Oct 22, 2010, 3:52:22 PM10/22/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PyScripter
When I Run this script
I get the message Syntax Error: invalid syntax
What is the error? There needs to be a hint!
import csv, sys
filename = "C:/Users/terry/Downloads/tup1012k/tup1012.drf)"
reader = csv.reader(open(filename, "rb"))
try:
for row in reader:
print (row)
except csv.Error, e:
sys.exit('file %s, line %d: %s' % (filename, reader.line_num, e))
the error message is pointing to: except csv.Error, e:
any help, please.
thanks
Terry