Message274649
Why do you need to call getpreferredencoding()? Isn't that already the default if you call TextIOWrapper with encoding as None? For example:
text_mode = encoding or errors or universal_newlines
self.stdin = io.open(p2cwrite, 'wb', bufsize)
if text_mode:
self.stdin = io.TextIOWrapper(self.stdin, write_through=True,
line_buffering=(bufsize == 1),
encoding=encoding, errors=errors) |
|
| Date |
User |
Action |
Args |
| 2016-09-06 22:50:07 | eryksun | set | recipients:
+ eryksun, amaury.forgeotdarc, ncoghlan, pitrou, vstinner, mark, eric.araujo, segfaulthunter, Arfrever, r.david.murray, srid, mightyiam, chris.jerdonek, martin.panter, steve.dower, berwin22 |
| 2016-09-06 22:50:07 | eryksun | set | messageid: <[email protected]> |
| 2016-09-06 22:50:07 | eryksun | link | issue6135 messages |
| 2016-09-06 22:50:07 | eryksun | create | |
|