[Tutor] why is unicode converted file double spaced?

Pirritano, Matthew MPirritano at ochca.com
Tue Apr 7 19:57:55 CEST 2009


Excellent! Thanks Marc, Kent, and everyone. Marc your code worked. Now
to see if it will run on the full 4.5 GB file! : )

 

Thanks

matt

 

Matthew Pirritano, Ph.D.

Research Analyst IV

Medical Services Initiative (MSI)

Orange County Health Care Agency

(714) 568-5648

________________________________

From: tutor-bounces+mpirritano=ochca.com at python.org
[mailto:tutor-bounces+mpirritano=ochca.com at python.org] On Behalf Of Marc
Tompkins
Sent: Tuesday, April 07, 2009 10:33 AM
To: tutor at python.org
Subject: Re: [Tutor] why is unicode converted file double spaced?

 

On Tue, Apr 7, 2009 at 10:26 AM, Pirritano, Matthew
<MPirritano at ochca.com> wrote:

Thanks Marc,

 

But I think that got rid of all of my carriage returns. Everything on
just one line now.

Sorry!  My bad!  Try this instead:

for outLine in inp:
    outp.write(outLine.strip() + '\n')

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090407/2b4b941e/attachment-0001.htm>


More information about the Tutor mailing list