homepage

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 doerwalter
Recipients doerwalter, ezio.melotti, fdrake, martin.panter, pitrou, serhiy.storchaka
Date 2015年03月31日.12:19:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427804399.63.0.573981997764.issue19100@psf.upfronthosting.co.za>
In-reply-to
Content
The linked code at https://github.com/vadmium/python-iview/commit/68b0559 seems strange to me:
 try:
 text.encode(encoding, textio.errors or "strict")
 except UnicodeEncodeError:
 text = text.encode(encoding, errors).decode(encoding)
 return text
is the same as:
 return text.encode(encoding, errors).decode(encoding)
because when there are no unencodable characters in text, the error handler will never be invoked.
History
Date User Action Args
2015年03月31日 12:19:59doerwaltersetrecipients: + doerwalter, fdrake, pitrou, ezio.melotti, martin.panter, serhiy.storchaka
2015年03月31日 12:19:59doerwaltersetmessageid: <1427804399.63.0.573981997764.issue19100@psf.upfronthosting.co.za>
2015年03月31日 12:19:59doerwalterlinkissue19100 messages
2015年03月31日 12:19:59doerwaltercreate

AltStyle によって変換されたページ (->オリジナル) /