Message86226
| Author |
vinay.sajip |
| Recipients |
shamilbi, vinay.sajip |
| Date |
2009年04月21日.09:25:05 |
| SpamBayes Score |
0.00019495517 |
| Marked as misclassified |
No |
| Message-id |
<1240305907.01.0.510148893924.issue5170@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Trunk and release26-maint were recently changed (r71657, r71658) to use
the following logic, which differs from the code snippet you posted.
if (isinstance(msg, unicode) and
getattr(stream, 'encoding', None)):
stream.write(fs.decode(stream.encoding) % msg)
else:
stream.write(fs % msg)
If the stream is stderr and you are passing a unicode msg, the else
branch will not be taken; as long as the stream has an encoding
attribute, it should output correctly.
The change was made when another, similar issue was posted by another
user (issue #5768).
Can you confirm what happens with the current code as it is in
release26-maint? спасибо! |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年04月21日 09:25:07 | vinay.sajip | set | recipients:
+ vinay.sajip, shamilbi |
| 2009年04月21日 09:25:07 | vinay.sajip | set | messageid: <1240305907.01.0.510148893924.issue5170@psf.upfronthosting.co.za> |
| 2009年04月21日 09:25:05 | vinay.sajip | link | issue5170 messages |
| 2009年04月21日 09:25:05 | vinay.sajip | create |
|