I'm practicing manipulating data with a text file. I'm trying to use
shlex.split to break up each line, which works great until it gets to
the first apostrophe:
fin = open('huckfinn.txt')
startstring = 'START OF THIS PROJECT'
for line in fin:
print line
words = shlex.split(line)
This is the line is where it's choking, complaining that there is no
closing quote:
YOU don't know about me without you have read a book by the name of The
How can I get shlex.split to ignore single apostrophes such as the one above?
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor