Message239692
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. |
|
Date |
User |
Action |
Args |
2015-03-31 12:19:59 | doerwalter | set | recipients:
+ doerwalter, fdrake, pitrou, ezio.melotti, martin.panter, serhiy.storchaka |
2015-03-31 12:19:59 | doerwalter | set | messageid: <1427804399.63.0.573981997764.issue19100@psf.upfronthosting.co.za> |
2015-03-31 12:19:59 | doerwalter | link | issue19100 messages |
2015-03-31 12:19:59 | doerwalter | create | |
|