From cc869d042665841c132a9e6282ebcc7c06e21fc3 Mon Sep 17 00:00:00 2001 From: lakshyacis Date: Thu, 29 Aug 2019 15:33:14 +0530 Subject: [PATCH] bitmessagemain flake8 Fixes --- src/bitmessagemain.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bitmessagemain.py b/src/bitmessagemain.py index 90e15c52..5dcfea6c 100755 --- a/src/bitmessagemain.py +++ b/src/bitmessagemain.py @@ -87,10 +87,10 @@ def connectToStream(streamNumber): with knownnodes.knownNodesLock: if streamNumber not in knownnodes.knownNodes: knownnodes.knownNodes[streamNumber] = {} - if streamNumber*2 not in knownnodes.knownNodes: - knownnodes.knownNodes[streamNumber*2] = {} - if streamNumber*2+1 not in knownnodes.knownNodes: - knownnodes.knownNodes[streamNumber*2+1] = {} + if streamNumber * 2 not in knownnodes.knownNodes: + knownnodes.knownNodes[streamNumber * 2] = {} + if streamNumber * 2 + 1 not in knownnodes.knownNodes: + knownnodes.knownNodes[streamNumber * 2 + 1] = {} BMConnectionPool().connectToStream(streamNumber) @@ -419,8 +419,8 @@ class Main: if daemon: while state.shutdown == 0: time.sleep(1) - if (state.testmode and - time.time() - state.last_api_response >= 30): + if ( + state.testmode and time.time() - state.last_api_response >= 30): self.stop() elif not state.enableGUI: from tests import core as test_core # pylint: disable=relative-import