消息 [274649]
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) |
|
| 日期 |
用户 |
动作 |
参数 |
| 2016-09-06 22:50:07 | eryksun | 修改 | 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 | 修改 | messageid: <1473202207.13.0.282597082424.issue6135@psf.upfronthosting.co.za> |
| 2016-09-06 22:50:07 | eryksun | 链接 | issue6135 messages |
| 2016-09-06 22:50:07 | eryksun | 创建 | |
|