Message248728
| Author |
Cosimo Lupo |
| Recipients |
Cosimo Lupo |
| Date |
2015年08月17日.14:11:06 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1439820667.47.0.427491446105.issue24881@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
the `_pyio` module at line 16 tries to check whether it is running on Windows platform, by doing:
```
if os.name == 'win32':
from msvcrt import setmode as _setmode
else:
_setmode = None
```
However, the string returned by os.name is 'nt' and not 'win32' (the latter is returned by `sys.platform`). Therefore, the value is always False and the setmode function from mscvrt module is never imported.
Thank you.
Cheers,
Cosimo |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年08月17日 14:11:07 | Cosimo Lupo | set | recipients:
+ Cosimo Lupo |
| 2015年08月17日 14:11:07 | Cosimo Lupo | set | messageid: <1439820667.47.0.427491446105.issue24881@psf.upfronthosting.co.za> |
| 2015年08月17日 14:11:07 | Cosimo Lupo | link | issue24881 messages |
| 2015年08月17日 14:11:06 | Cosimo Lupo | create |
|