homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:07Cosimo Luposetrecipients: + Cosimo Lupo
2015年08月17日 14:11:07Cosimo Luposetmessageid: <1439820667.47.0.427491446105.issue24881@psf.upfronthosting.co.za>
2015年08月17日 14:11:07Cosimo Lupolinkissue24881 messages
2015年08月17日 14:11:06Cosimo Lupocreate

AltStyle によって変換されたページ (->オリジナル) /