I know

fs = open('file.txt','rU')

for universal newlines.
In a cgi script, I get files like this:

fs = form['file'].file

Is there a simple (simple!!! I don't want to do something like write to
a local file and then reopen) way to set the mode of fs in this case so
it does universal newlines?

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to