Author vstinner
Recipients doerwalter, eric.smith, ezio.melotti, pablomouzo, vstinner
Date 2010-03-09.23:50:03
SpamBayes Score 0.000232703
Marked as misclassified No
Message-id <1268178605.83.0.110610602296.issue7300@psf.upfronthosting.co.za>
In-reply-to
Content
My patch converts the format string to unicode using the default encoding. It's inconsistent with str%args: str%args converts str to unicode using the ASCII charset (if a least one argument is an unicode string), not the default encoding.

>>> "\xff%s" % u'\xe9'
...
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
History
Date User Action Args
2010-03-09 23:50:06vstinnersetrecipients: + vstinner, doerwalter, eric.smith, ezio.melotti, pablomouzo
2010-03-09 23:50:05vstinnersetmessageid: <1268178605.83.0.110610602296.issue7300@psf.upfronthosting.co.za>
2010-03-09 23:50:03vstinnerlinkissue7300 messages
2010-03-09 23:50:03vstinnercreate