Windows plaform check pythonic

- moved to .startswith instead of 'in'
- thanks @Lvl4sword
This commit is contained in:
Peter Šurda 2017-05-25 15:00:10 +02:00
parent 9683c879bc
commit 51e52401fe
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -92,7 +92,7 @@ def connectToStream(streamNumber):
a.start()
def _fixWinsock():
if not ('win32' in sys.platform) and not ('win64' in sys.platform):
if not sys.platform.startswith('win'):
return
# Python 2 on Windows doesn't define a wrapper for