httplib module

Steve Holden steve at holdenweb.com
Sun Jul 8 08:59:12 EDT 2007


Boris Ozegovic wrote:
> Steve Holden wrote:
> 
>>>> Why do I get double new lines when geting data from server?  Example:
>> How? It's customary to include details when you've solved your own 
>> problem in case someone else gets the same issue.
> 
> Ok.  In do_GET I had this two lines:
> 
> for line in file:
>     print line 
> 
> As you can see, print inserted another \n.  :-)
> 
> Correct code is:
> 
> for line in file:
>     print line, 
> 
Thanks. Glad you got it sorted out.

regards
  Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd           http://www.holdenweb.com
Skype: holdenweb      http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------




More information about the Python-list mailing list