bitmessagemain flake8 Fixes

This commit is contained in:
lakshyacis 2019-08-29 15:33:14 +05:30
parent 395fbcd0f0
commit cc869d0426
No known key found for this signature in database
GPG Key ID: D2C539C8EC63E9EB

View File

@ -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