Message274649
| Author |
eryksun |
| Recipients |
Arfrever, amaury.forgeotdarc, berwin22, chris.jerdonek, eric.araujo, eryksun, mark, martin.panter, mightyiam, ncoghlan, pitrou, r.david.murray, segfaulthunter, srid, steve.dower, vstinner |
| Date |
2016年09月06日.22:50:07 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1473202207.13.0.282597082424.issue6135@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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) |
|
History
|
|---|
| 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: <1473202207.13.0.282597082424.issue6135@psf.upfronthosting.co.za> |
| 2016年09月06日 22:50:07 | eryksun | link | issue6135 messages |
| 2016年09月06日 22:50:07 | eryksun | create |
|