This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ssbarnea
Recipients Jiri.Horky, bero, cyrus, eric.araujo, ezio.melotti, orsenthil, santoso.wijaya, ssbarnea, terry.reedy
Date 2011-06-25.19:54:23
SpamBayes Score 1.4629019e-05
Marked as misclassified No
Message-id <1309031664.1.0.864654468055.issue11898@psf.upfronthosting.co.za>
In-reply-to
Content
I have to add some details here. First, this bug has nothing to do with the URL, it does reproduce for normal urls.


Still the problem with the line: "msg += message_body" is quite complex when combined with Python 2.7:

type(msg) is unicode
type(message_body) is str ... even if I tried to manually force Python for use bytes. It seams that in 2.7 bytes are alias to str. Due to this the code will fail to run only on 2.7 because it will try to convert  binary data to unicode string.

If I am not mistaken the code will work with Python 3.x, because there bytes() are not str().
History
Date User Action Args
2011-06-25 19:54:24ssbarneasetrecipients: + ssbarnea, terry.reedy, orsenthil, bero, ezio.melotti, eric.araujo, santoso.wijaya, Jiri.Horky, cyrus
2011-06-25 19:54:24ssbarneasetmessageid: <1309031664.1.0.864654468055.issue11898@psf.upfronthosting.co.za>
2011-06-25 19:54:23ssbarnealinkissue11898 messages
2011-06-25 19:54:23ssbarneacreate