replacing \n characters in a hash
fredrik at pythonware.com
Thu Jan 26 16:58:57 CET 2006
(since this is a newsgroup, can you please quote the message
you're replying to).
> In response to that the output is this :
> <type 'str'> 'Updated libc-client packages that fix a buffer overflow
> issue are now\navailable.\n\nThis update has been rated as having
> moderate security impact by the Red\nHat Security Response Team.'
<type 'str> means that it *is* a string, after all. looks like you didn't
post the code you were using :-(
replacing the print statement with
errata_package = errata_package.replace("\n", " ")
should do what you want.
More information about the Python-list