Check for functionality via imports rather than checking sys.platform specifically for Windows
| try: | ||
| import msvcrt | ||
| import _winapi | ||
| _mswindows = True |
There was a problem hiding this comment.
The _mswindows = True? sure, it could be. But it doesn't matter.
Check for functionality via imports rather than checking sys.platform
specifically for Windows
https://bugs.python.org/issue8110