[MERGE/PQM] Add XMLRPC support
John Arbash Meinel
john at arbash-meinel.com
Wed Aug 6 14:08:57 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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')
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkiZomkACgkQJdeBCYSNAAMbOgCgrDQb1NgPGQHpKkQAJyyfa7TO
ur0AoIehKNYZJKvQMvjVJpWffqXx2MWE
=Bp78
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list