flake8: state

This commit is contained in:
Dmitri Bogomolov 2018-04-18 13:34:12 +03:00
parent 354bf45d54
commit 57ddf8f2fd
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -2,7 +2,7 @@ import collections
neededPubkeys = {}
streamsInWhichIAmParticipating = []
sendDataQueues = [] #each sendData thread puts its queue in this list.
sendDataQueues = [] # each sendData thread puts its queue in this list.
# For UPnP
extPort = None
@ -13,10 +13,11 @@ socksIP = None
# Network protocols availability, initialised below
networkProtocolAvailability = None
appdata = '' #holds the location of the application data storage directory
shutdown = 0 #Set to 1 by the doCleanShutdown function. Used to tell the proof of work worker threads to exit.
appdata = '' # holds the location of the application data storage directory
# Set to 1 by the doCleanShutdown function.
# Used to tell the proof of work worker threads to exit.
shutdown = 0
# Component control flags - set on startup, do not change during runtime
# The defaults are for standalone GUI (default operating mode)
@ -56,10 +57,12 @@ missingObjects = {}
Peer = collections.namedtuple('Peer', ['host', 'port'])
def resetNetworkProtocolAvailability():
global networkProtocolAvailability
networkProtocolAvailability = {'IPv4': None, 'IPv6': None, 'onion': None}
resetNetworkProtocolAvailability()
dandelion = 0