Universal newline mode with cgi

O

oglycans

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,222
Messages
2,571,142
Members
47,757
Latest member
PDIJaclyn

Latest Threads

Top