[MERGE/PQM] Add XMLRPC support
Daniel Watkins
daniel at daniel-watkins.co.uk
Thu Aug 7 02:34:10 BST 2008
On Wed, 06 Aug 2008 08:08:57 -0500
John Arbash Meinel <john at arbash-meinel.com> wrote:
> Jonathan Lange wrote:
> |> + # canonicalize line endings
> |> + body = '\n'.join(re.split('\r?\n', msg))
> |> + return ("From: %(sender)s\n"
> |> + "Subject: %(subject)s\n"
> |> + "%(body)s" % {'sender': sender,
> |> + 'subject': subject,
> |> + 'body': body,})
> |> +
>
> ^- This seems like a really complex way to do:
>
> body = msg.replace('\r\n', '\n')
Yup, I was just shifting code around. I'll include the fix in my
response to jml's review.
--
Daniel Watkins (Odd_Bloke)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080807/385b0607/attachment.pgp
More information about the bazaar
mailing list