By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,907 Members | 2,039 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,907 IT Pros & Developers. It's quick & easy.

Universal newline mode with cgi

P: n/a
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?

Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.