replacing \n characters in a hash
Fredrik Lundh
fredrik at pythonware.com
Thu Jan 26 10:58:57 EST 2006
(since this is a newsgroup, can you please quote the message
you're replying to).
Johhny wrote:
> 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.
</F>
More information about the Python-list
mailing list