Windows plaform check pythonic
- moved to .startswith instead of 'in' - thanks @Lvl4sword
This commit is contained in:
parent
9683c879bc
commit
51e52401fe
|
@ -92,7 +92,7 @@ def connectToStream(streamNumber):
|
||||||
a.start()
|
a.start()
|
||||||
|
|
||||||
def _fixWinsock():
|
def _fixWinsock():
|
||||||
if not ('win32' in sys.platform) and not ('win64' in sys.platform):
|
if not sys.platform.startswith('win'):
|
||||||
return
|
return
|
||||||
|
|
||||||
# Python 2 on Windows doesn't define a wrapper for
|
# Python 2 on Windows doesn't define a wrapper for
|
||||||
|
|
Loading…
Reference in New Issue
Block a user