From 51e52401fececa2c760bcd23b12141f4b3e3af13 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Thu, 25 May 2017 15:00:10 +0200 Subject: [PATCH] Windows plaform check pythonic - moved to .startswith instead of 'in' - thanks @Lvl4sword --- src/bitmessagemain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitmessagemain.py b/src/bitmessagemain.py index e61675cf..2c0be937 100755 --- a/src/bitmessagemain.py +++ b/src/bitmessagemain.py @@ -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